Skip to content

Commit 1da9dd4

Browse files
committed
test: Track code coverage
1 parent 6e7693e commit 1da9dd4

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ before_script:
1010
script:
1111
- npm run all
1212
after_success:
13+
- npx codecov
1314
- npx babel-node ./bin/sync-algolia.js
1415
deploy:
1516
provider: script

package.json

+5
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
"path": "cz-conventional-changelog"
2222
}
2323
},
24+
"jest": {
25+
"collectCoverageFrom": [
26+
"src/**/*.js"
27+
]
28+
},
2429
"dependencies": {
2530
"classnames": "^2.2.5"
2631
},

src/__tests__/index.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-env jest */
2-
import feather from '../..';
2+
import feather from '../index';
33

44
test('has correct properties', () => {
55
expect(feather).toHaveProperty('icons');

0 commit comments

Comments
 (0)