I have a Cypress (12.9.0
) setup for E2E testing, where every file in the e2e
folder is a single e2e scenario with one describe()
and many it()
tests.
Each scenario and its tests all rely on a number of intercept()
stubs (same stubs for every scenario) and do not need to reset between each it()
test - I want them to be set once for the suite.
I had thought that setting the testIsolation
config value to false
would do this, but it seems like that does not prevent the intercept stubs from getting cleared - it only preserves the browser context.
Is there a way to accomplish this, to prevent having to re-create intercept()
mocks for every test and instead be able to create them just once per test-suite (describe()
)?