Skip to content

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

Description

@trevorr

After upgrading from Cypress 8 to 10, we started getting this CypressError using @interactors/with-cypress@1.0.0-rc1.1:

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

node_modules/.pnpm/@interactors+with-cypress@1.0.0-rc1.1_cypress@10.2.0/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

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions