@badeball/cypress-cucumber-preprocessor
Version:
[](https://github.com/badeball/cypress-cucumber-preprocessor/actions/workflows/build.yml) [ • 773 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const globalPropertyName = "__cypress_cucumber_preprocessor_mocha_dont_use_this";
globalThis[globalPropertyName] = {
before: globalThis.before,
beforeEach: globalThis.beforeEach,
after: globalThis.after,
afterEach: globalThis.afterEach,
};
/**
* {} isn't strictly speaking a Mocha.Hook, so if Cypress decides to update their shipped Mocha
* version to v11, which introduces #5231 [1], then this might become problematic. The
* @types/mocha package did however update their types within its v10 line.
*
* [1] https://github.com/mochajs/mocha/issues/5231
*/
window.before = () => ({});
window.beforeEach = () => ({});
window.after = () => ({});
window.afterEach = () => ({});