UNPKG

@serenity-js/jasmine

Version:

Serenity/JS test runner adapter for Jasmine, enabling the use of the Screenplay Pattern in Jasmine-based test suites and leveraging Serenity/JS reporting capabilities

28 lines 982 B
import { SerenityReporterForJasmine } from './SerenityReporterForJasmine.js'; /** * Monkey-patches Jasmine's Suite and Spec so that they provide more accurate information, * and returns a bootstrapped instance of the [`SerenityReporterForJasmine`](https://serenity-js.org/api/jasmine/function/default/) to be registered with Jasmine. * * ## Registering the reporter from the command line * * ```terminal * jasmine --reporter=@serenity-js/jasmine * ``` * * ## Registering the reporter programmatically * * ```ts * import serenityReporterForJasmine = require('@serenity-js/jasmine'); * * jasmine.getEnv().addReporter(serenityReporterForJasmine); * ``` * * @param config * @param jasmine * the global.jasmine instance */ export declare function bootstrap(config?: SerenityReporterForJasmineConfig, jasmine?: any): SerenityReporterForJasmine; export interface SerenityReporterForJasmineConfig { specDirectory?: string; } //# sourceMappingURL=bootstrap.d.ts.map