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
I have this issue with the latest release of jasmine 3.3.1
I can reproduce this issue with one of the examples
Current behavior
jasmine allows to use reporter as a command line option, like jasmine --reporter=jasmine-spec-reporter, but jasmine-spec-reporter itself is not compatible.
failed to register reporter "jasmine-spec-reporter"
Report is not a constructor
TypeError: Report is not a constructor
at runJasmine (xxx/node_modules/jasmine/lib/command.js:148:22)
at Command.run (xxx/node_modules/jasmine/lib/command.js:56:9)
at Object.<anonymous> (xxx/node_modules/jasmine/bin/jasmine.js:11:9)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:741:12)
at startup (internal/bootstrap/node.js:285:19)
Also I tried jasmine --reporter=jasmine-spec-reporter/built/spec-reporter.js. In this case, no error reported, but also reporter not works.
The text was updated successfully, but these errors were encountered:
apla
added a commit
to apla/jasmine-spec-reporter
that referenced
this issue
Apr 7, 2019
This feature seems handy but it can only be used with the default configuration of jasmine-spec-reporter.
This feature expect that the reporter module export a constructor (jasmine/jasmine#1027 (comment)) but currently jasmine-spec-reporter export:
A way to do that without breaking the current exports could be to have a dedicated node module with only the constructor exported. IMO, it sounds a bit complicated for the benefit of this feature.
Current behavior
jasmine
allows to use reporter as a command line option, likejasmine --reporter=jasmine-spec-reporter
, butjasmine-spec-reporter
itself is not compatible.Also I tried
jasmine --reporter=jasmine-spec-reporter/built/spec-reporter.js
. In this case, no error reported, but also reporter not works.The text was updated successfully, but these errors were encountered: