Skip to content

Commit d6fd675

Browse files
committed
test: nyc upgrade to v15
1 parent b1059f2 commit d6fd675

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

test/sandbox-coverage.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ const NYC = require('nyc');
55

66
sandbox.configure({
77
sourceTransformers: {
8-
nyc: function (source) {
8+
nyc(source) {
99
if (this.filename.indexOf('node_modules') > -1) {
1010
return source;
1111
}
12-
const nyc = new NYC();
13-
return nyc.instrumenter().instrumentSync(source, this.filename);
14-
}
15-
}
12+
const nyc = new NYC({});
13+
return nyc
14+
.instrumenter()
15+
.instrumentSync(source, this.filename, { registerMap: () => {} });
16+
},
17+
},
1618
});

0 commit comments

Comments
 (0)