Skip to content

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

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

864868ee7ae5e36563c6add5a84678d2d82a9ab3

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