You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varim=require('istanbul-middleware'),app.use(function(req,res,next){if(isJSRequiringCoverage(req)){varfile=getFilePath(req),//it's okcode=readTheCodeFromFile(file),//it's okinstrumenter=im.getInstrumenter();//TypeError: im.getInstrumenter is not a functionres.send(instrumenter.instrumentSync(code,file));//exception handling omitted for brevity}else{next();}});
the getInstrumenter function is defined in './core.js',I can not use it on im
The text was updated successfully, but these errors were encountered:
I write my own custom middleware.As in:
the getInstrumenter function is defined in './core.js',I can not use it on im
The text was updated successfully, but these errors were encountered: