Skip to content

[@nx/cypress] In Cypress v12,the testIsolation option is turned on by default. #136

Description

@github-actions

In Cypress v12,the testIsolation option is turned on by default.

This can cause tests to start breaking where not indended.

You should consider enabling this once you verify tests do not depend on each other

More Info: https://docs.cypress.io/guides/references/migration-guide#Test-Isolation

* TODO(@nx/cypress): In Cypress v12,the testIsolation option is turned on by default.

import { defineConfig } from 'cypress'
import { nxE2EPreset } from '@nx/cypress/plugins/cypress-preset'

export default defineConfig({
  e2e: {
    ...nxE2EPreset(__dirname),
    /**
     * TODO(@nx/cypress): In Cypress v12,the testIsolation option is turned on by default.
     * This can cause tests to start breaking where not indended.
     * You should consider enabling this once you verify tests do not depend on each other
     * More Info: https://docs.cypress.io/guides/references/migration-guide#Test-Isolation
     **/
    testIsolation: false,
  },
})

113949e603319d35ef2b74a45a8ce727faf86724

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions