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
onPrepare() and afterLaunch() in karma.conf.js is never called
I tried creating a karma plugin, but I have no clue where I can get the jasmine instance:
varReportServerReporter=function(baseReporterDecorator,config){console.log('#### ReportServerReporter ####');this.onRunStart=function(browsers){console.log('#### onRunStart ####: ',browsers);// no idea how to get the jasmine object// jasmine.getEnv().addReporter(agent.getJasmineReporter());}this.onBrowserComplete=function(browsers){console.log('#### onBrowserComplete ####: ',browsers);}this.onExit=function(done){console.log('#### onExit ####');done();}};ReportServerReporter.$inject=['baseReporterDecorator','config'];module.exports=function(config){config.set({
....plugins: [
...,{'reporter:report-server': ['type',ReportServerReporter]}],
....reporters: [....,'report-server'],
....});}
The text was updated successfully, but these errors were encountered:
I tried agent-js-jasmine and also looked into the issues:
But sadly I have no clue how that should work:
I tried creating a karma plugin, but I have no clue where I can get the jasmine instance:
The text was updated successfully, but these errors were encountered: