Skip to content

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

@github-actions

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,
  },
})

0b1f01cd7ba2ba4a91cdade3d97ae43151430dcf

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