Skip to content

Commit 87dd3c8

Browse files
authored
Merge pull request #307 from jprichardson/coverage
Fix coverage
2 parents 597a98f + 7448648 commit 87dd3c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ env:
1515
- TEST_SUITE=unit
1616
script: npm run-script $TEST_SUITE
1717
after_success:
18-
- npm run coveralls
18+
- if [ $TEST_SUITE = lint ]; then npm run coveralls; fi

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
},
5252
"main": "./lib/index",
5353
"scripts": {
54-
"coverage": "istanbul cover test.js",
54+
"coverage": "istanbul cover -i 'lib/**' -x '**/__tests__/**' test.js",
5555
"coveralls": "npm run coverage && coveralls < coverage/lcov.info",
5656
"lint": "standard",
5757
"test-find": "find ./lib/**/__tests__ -name *.test.js | xargs mocha",

0 commit comments

Comments
 (0)