Skip to main content

externaldefault

Callable

  • default(config?: SerenityReporterForJasmineConfig, jasmine?: any): SerenityReporterForJasmine

  • Monkey-patches Jasmine's Suite and Spec so that they provide more accurate information, and returns a bootstrapped instance of the SerenityReporterForJasmine to be registered with Jasmine.

    Registering the reporter from the command line

    jasmine --reporter=@serenity-js/jasmine

    Registering the reporter programmatically

    import serenityReporterForJasmine = require('@serenity-js/jasmine');

    jasmine.getEnv().addReporter(serenityReporterForJasmine);

    Parameters

    • externalconfig: SerenityReporterForJasmineConfig = {}
    • externaljasmine: any = ...

      the global.jasmine instance

    Returns SerenityReporterForJasmine