Functions
Static Public Summary | ||
public |
bootstrap(jasmine: jasmine): 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. |
|
public |
monkeyPatched(jasmineConstructor: *, wrappers: object): * Monkey-patches Jasmine domain model constructors so that they record information about the file system location of the caller function. |
Static Public
public bootstrap(jasmine: jasmine): SerenityReporterForJasmine source
import {bootstrap} from '@serenity-js/jasmine'
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.
Params:
Name | Type | Attribute | Description |
jasmine | jasmine | the global.jasmine instance |
Examples:
jasmine --reporter=@serenity-js/jasmine
import serenityReporterForJasmine = require('@serenity-js/jasmine');
jasmine.getEnv().addReporter(serenityReporterForJasmine);
Tests:
- @serenity-js/jasmine monkey-patches Jasmine so that the Spec defaults to an unknown location if the real one could not be determined
- @serenity-js/jasmine monkey-patches Jasmine so that the Spec has all the static members of the original constructor function
- @serenity-js/jasmine monkey-patches Jasmine so that the Spec has all the static members of the original constructor function
- @serenity-js/jasmine monkey-patches Jasmine so that the Suite defaults to an unknown location if the real one could not be determined
public monkeyPatched(jasmineConstructor: *, wrappers: object): * source
import {monkeyPatched} from '@serenity-js/jasmine'
Monkey-patches Jasmine domain model constructors so that they record information about the file system location of the caller function.
This helps to make reporting more accurate.
Params:
Name | Type | Attribute | Description |
jasmineConstructor | * | A Jasmine constructor function to be patched |
|
wrappers | object | Attributes to wrap when the monkey-patched Jasmine constructor is invoked |
Returns:
* |
Tests:
- @serenity-js/jasmine monkey-patches Jasmine so that the Spec defaults to an unknown location if the real one could not be determined
- @serenity-js/jasmine monkey-patches Jasmine so that the Spec has all the static members of the original constructor function
- @serenity-js/jasmine monkey-patches Jasmine so that the Spec has all the static members of the original constructor function
- @serenity-js/jasmine monkey-patches Jasmine so that the Suite defaults to an unknown location if the real one could not be determined