jasmine-node
jasmine-node copied to clipboard
How do I add a custom report?
In protractor, user can add the custom report in protractor config file, using option "onPrepare" of config object, as following:
exports.config = {
onPrepare: function () {
jasmine.getEnv().addReporter(myReporter);
}
}
Assume I wrote "myReporter" using the example of jasmine custom report Is there any option like "onPrepare" in jasmine-node allow user setup their custom report? If there is no, it would be nice to have a feature allow user setup things in a javascript config file like the way protractor is using.