UNPKG

@badeball/cypress-cucumber-preprocessor

Version:

[![Build status](https://github.com/badeball/cypress-cucumber-preprocessor/actions/workflows/build.yml/badge.svg)](https://github.com/badeball/cypress-cucumber-preprocessor/actions/workflows/build.yml) [![Npm package weekly downloads](https://badgen.net/n

21 lines (20 loc) 773 B
"use strict"; 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 = () => ({});