Skip to content

Commit

Permalink
ensure to fail if snapshots become unavailable for cypress in cypress
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanthemanuel committed Dec 6, 2022
1 parent 40ec8ef commit 1ff5927
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/frontend-shared/cypress/e2e/e2ePluginSetup.ts
Expand Up @@ -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
Expand Down

1 comment on commit 1ff5927

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 1ff5927 Dec 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux arm64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/12.0.1/linux-arm64/ryanm/fix/cy-in-cy-and-v8-snapshots-1ff59273fff9dad19e812c788d15c4e9a6cc4176/cypress.tgz

Please sign in to comment.