Example showing TypeScript tests with Cypress
Uses webpack to transpile TypeScript tests via @cypress/webpack-preprocessor
See webpack.config.js, cypress/plugins/index.js and example test
To get Mocha TypeScript definitions for describe
, it
and other BDD functions plus cy
itself, install the typings.
npm install --save-dev @types/mocha @types/cypress
Without type definitions
With type definitions installed, you get IntelliSense