diff --git a/packages/frontend-shared/cypress/e2e/e2ePluginSetup.ts b/packages/frontend-shared/cypress/e2e/e2ePluginSetup.ts index fb8cbb5c8057..82d4c1d5ecf9 100644 --- a/packages/frontend-shared/cypress/e2e/e2ePluginSetup.ts +++ b/packages/frontend-shared/cypress/e2e/e2ePluginSetup.ts @@ -43,6 +43,11 @@ chai.use(chaiSubset) chai.use(sinonChai) export async function e2ePluginSetup (on: Cypress.PluginEvents, config: Cypress.PluginConfigOptions) { + // @ts-ignore snapshotAuxiliaryData is injected by the snapshot script + if (typeof global.snapshotAuxiliaryData === 'undefined') { + throw new Error('snapshotAuxiliaryData is undefined. v8 snapshots are not being used in Cypress in Cypress') + } + process.env.CYPRESS_INTERNAL_E2E_TESTING_SELF = 'true' delete process.env.CYPRESS_INTERNAL_GRAPHQL_PORT delete process.env.CYPRESS_INTERNAL_VITE_DEV