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

17 lines 842 B
/** * 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. * * For Jasmine 5.x, the location is stored on instance.result.location. * For Jasmine 6.x, the location is stored on instance._serenityLocation and * injected into the result events via patched startedEvent/doneEvent methods. * * @param jasmineConstructor - A Jasmine constructor function to be patched * @param {object} wrappers - Attributes to wrap when the monkey-patched Jasmine constructor is invoked */ export declare function monkeyPatched(jasmineConstructor: any, wrappers?: { [key: string]: (original: (attrs: object) => any) => (attrs: object) => any; }): (attrs: object) => any; //# sourceMappingURL=monkeyPatched.d.ts.map