In an Angular project, ng add @cypress/schematic
installs the latest version of Cypress by default. With the many breaking changes in Cypress 10 and a lack of documentation for implementing Cucumber in Cypress 10, this proves problematic. We want to use Cypress Schematic to install cypress@9.x.x
. Using the regular npm install --save-dev cypress@9.x.x
isn't desirable because it doesn't override commands like ng e2e
like schematics does (instead, Protractor still controls those).
How can I force the ng add @cypress/schematic
commmand to install a specific version of Cypress?