Skip to content

Commit b8562b7

Browse files
committed
fix: remove outdated istanbul hook to make work with Meteor 3 app-tests
1 parent 8bb68bb commit b8562b7

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

meteor-legacy-coverage/server/services/instrumenter.js

-20
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,6 @@ hookLoader = function (opts) {
2121
throw 'Instrumenter already defined ! You cannot call this method twice';
2222
}
2323
instrumenter = Instrument.createInstrumenter(opts);
24-
Hook.hookRunInThisContext(
25-
shallInstrumentServerScript,
26-
function (code, options) {
27-
var filename = typeof options === 'string' ? options : options.filename;
28-
return instrumenter.instrumentSync(code, filename);
29-
},
30-
{
31-
verbose: opts.verbose
32-
}
33-
);
34-
Hook.hookRequire(
35-
shallInstrumentServerScript,
36-
function (code, options) {
37-
var filename = typeof options === 'string' ? options : options.filename;
38-
return instrumenter.instrumentSync(code, filename);
39-
},
40-
{
41-
verbose: opts.verbose
42-
}
43-
);
4424
};
4525

4626
instrumentJs = function (content, path, callback) {

0 commit comments

Comments
 (0)