Skip to content

Commit dcb1afc

Browse files
ci: properly exclude generated files from coverage
1 parent 20b5f28 commit dcb1afc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"unit-test": "mocha --timeout 5000 --bail packages/*/test/*.js",
4141
"snippet-test": "mocha --timeout 5000 --bail test/docs.js",
4242
"system-test": "mocha packages/*/system-test/*.js --no-timeouts --bail",
43-
"cover": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -x 'packages/*/src/*/*.js' -- --no-timeouts --bail packages/*/test/*.js -R spec",
43+
"cover": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -x 'packages/*/src/*{/*,/**/*}.js' -- --no-timeouts --bail packages/*/test/*.js -R spec",
4444
"coveralls": "npm run cover && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
4545
},
4646
"license": "Apache-2.0",

0 commit comments

Comments
 (0)