Skip to main content

default

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);
    @see
    • monkeyPatched
    • SerenityReporterForJasmine

    Parameters

    • config: SerenityReporterForJasmineConfig = {}
    • jasmine: any = ...

      the global.jasmine instance

    Returns SerenityReporterForJasmine