You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 24, 2021. It is now read-only.
After installing plugin in a project that uses Cypress e2e tests written in Typescript, Cypress fails with "ReferenceError: Cypress is not defined" in /lib/support.js:3:15
Steps to reproduce: ng new angular-test - empty app ng add @briebug/cypress-schematic - schematic that installs Typescript support
install cypress-plugin-retries using readme steps: npm install -D cypress-plugin-retries and add require('cypress-plugin-retries') to index.js npx cypress open fails
I tried adding "cypress-plugin-retries" in compilerOptions -> types in cypress/tsconfig.json but no avail.
I see has index.d.ts in package lib files, but I can't get it to work - is there something I'm missing? Thanks in advance.
The text was updated successfully, but these errors were encountered:
This isn't a typescript error, notice "ReferenceError" and the stack trace.
I believe you've misconfigured the plugin, make sure you require the plugin in the "cypress/support" folder and follow the optional installation instructions after that.
After installing plugin in a project that uses Cypress e2e tests written in Typescript, Cypress fails with "ReferenceError: Cypress is not defined" in /lib/support.js:3:15
Steps to reproduce:
ng new angular-test
- empty appng add @briebug/cypress-schematic
- schematic that installs Typescript supportinstall
cypress-plugin-retries
using readme steps:npm install -D cypress-plugin-retries
and addrequire('cypress-plugin-retries')
toindex.js
npx cypress open
failsI tried adding
"cypress-plugin-retries"
in compilerOptions -> types incypress/tsconfig.json
but no avail.I see has index.d.ts in package lib files, but I can't get it to work - is there something I'm missing? Thanks in advance.
The text was updated successfully, but these errors were encountered: