Closed gumieniakm closed 4 years ago
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 support installcypress-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.