Skip to content

Commit 594d3b4

Browse files
committed
Fix istanbul covering node_modules.
1 parent 6512955 commit 594d3b4

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

.istanbul.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
reporting:
2+
print: summary
3+
reports:
4+
- lcov
5+
- html
6+
dir: ./build/coverage

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
"scripts": {
2626
"lint": "eslint .",
27-
"unit-test": "istanbul test --dir build/coverage _mocha test -- --recursive --reporter spec",
27+
"unit-test": "istanbul test _mocha test -- --recursive --reporter spec",
2828
"coverage": "npm run unit-test --coverage && npm run report-coverage-html",
2929
"report-coverage-html": "istanbul report --dir build/coverage html",
3030
"test": "npm run lint && npm run coverage",

test/setup.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
'use strict';
2+
3+
var sandboxedModule = require('sandboxed-module');
4+
5+
sandboxedModule.configure({
6+
sourceTransformersSingleOnly: [ 'istanbul' ]
7+
});

0 commit comments

Comments
 (0)