@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
33 lines • 1.05 kB
TypeScript
import { SerenityReporterForJasmine } from './SerenityReporterForJasmine.js';
/**
* Bootstraps the Serenity/JS reporter for Jasmine.
*
* This function monkey-patches Jasmine's Suite and Spec constructors
* so that they provide more accurate location information.
*
* For Jasmine 5.x, Suite and Spec are on the jasmine object directly.
* For Jasmine 6.x, Suite and Spec are in jasmine.private.
*
* ## 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