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
asyncfunctionregisterReporter(reporterModuleName,jasmine){letReporter;try{Reporter=awaitnewLoader().load(resolveReporter(reporterModuleName));}catch(e){thrownewError('Failed to load reporter module '+reporterModuleName+'\nUnderlying error: '+e.stack+'\n(end underlying error)');}
I believe that the code should use the jasmine.loader instead of creating a new Loader() so that we can set the jsLoader: 'require' in a config file when necessary. So something like this
asyncfunctionregisterReporter(reporterModuleName,jasmine){letReporter;try{Reporter=awaitjasmine.loader.load(resolveReporter(reporterModuleName));}catch(e){thrownewError('Failed to load reporter module '+reporterModuleName+'\nUnderlying error: '+e.stack+'\n(end underlying error)');}
The text was updated successfully, but these errors were encountered:
Hello, since the major release to jasmine 4.0.1, the following code described in the documentation fails with the this error
It seems to be caused by this line
https://github.com/jasmine/jasmine-npm/blob/main/lib/command.js#L169
I believe that the code should use the jasmine.loader instead of creating a new Loader() so that we can set the
jsLoader: 'require'
in a config file when necessary. So something like thisThe text was updated successfully, but these errors were encountered: