Skip to content

Commit 2bbee6e

Browse files
authored
Merge pull request #356 from rackerlabs/unit-testing-coverage-report
Excluding the spec files from coverage report using istanbul tool
2 parents 08f91d5 + 3b85bd4 commit 2bbee6e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@
8484
"test:unit": "mocha test/run_unit.js",
8585
"test": "cd test; yarn test"
8686
},
87+
"nyc": {
88+
"exclude": ["src/**/*.spec.js", "test/run_unit.js"]
89+
},
8790
"repository": "https://github.com/rackerlabs/helix-ui.git",
8891
"author": "Ryan Johnson <[email protected]>",
8992
"contributors": [

test/run_unit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ global.sinon = sinon;
1111
global.expect = expect;
1212

1313
// Add Tests Here
14-
require('../src/helix-ui/utils/index.spec');
14+
require('../src/helix-ui/utils/index.spec');

0 commit comments

Comments
 (0)