Skip to content

with-cypress doesn't work with Cypress 10 #207

@trevorr

Description

@trevorr

After upgrading from Cypress 8 to 10, we started getting this CypressError using @interactors/[email protected]:

Cypress.Commands.add() cannot create a new command named expect because that name is reserved internally by Cypress.

node_modules/.pnpm/@[email protected][email protected]/node_modules/@interactors/with-cypress/dist/cypress.js:34:1:

  33 |     // NOTE: Add interaction assertion function, Cypress also overrides `expect` method to a wrapper function
> 34 |     Cypress.Commands.add('expect', (interaction) => interact([].concat(interaction), 'expect'));
     | ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions