test: Track code coverage

This commit is contained in:
Cole Bemis
2018-05-17 23:19:02 -07:00
parent 6e7693e6da
commit 1da9dd43b2
3 changed files with 7 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ before_script:
script: script:
- npm run all - npm run all
after_success: after_success:
- npx codecov
- npx babel-node ./bin/sync-algolia.js - npx babel-node ./bin/sync-algolia.js
deploy: deploy:
provider: script provider: script

View File

@@ -21,6 +21,11 @@
"path": "cz-conventional-changelog" "path": "cz-conventional-changelog"
} }
}, },
"jest": {
"collectCoverageFrom": [
"src/**/*.js"
]
},
"dependencies": { "dependencies": {
"classnames": "^2.2.5" "classnames": "^2.2.5"
}, },

View File

@@ -1,5 +1,5 @@
/* eslint-env jest */ /* eslint-env jest */
import feather from '../..'; import feather from '../index';
test('has correct properties', () => { test('has correct properties', () => {
expect(feather).toHaveProperty('icons'); expect(feather).toHaveProperty('icons');