This is a Typescript Cypress boilerplate framework with ESLint setup to enforce coding format and structure.
- NodeJS (Version 18, note the project was setup on Node v18.18.0)
- Yarn
- Google Chrome
./cypress
- Folder containing cypress files./cypress/e2e
- Folder containing test suites./cypress.config.js
- Cypress config file
This is a Cypress project that is using Typescript, setup as explained in Cypress documentation. The test files should use Typescript and the .ts
extension.
To run all the tests use the command the following command.
yarn test
If you want to open Cypress to configure or run individual tests you can use the following command.
yarn cypress open
You can find an example test at ./cypress/e2e/exampleTest.cy.ts
This project supports ESLint and can be run using the following command.
yarn lint
If you want ESLint to try to fix errors you can run the following command.
yarn lint --fix
ESLint also uses prettier to enforce code formatting (Tabs, Colons, etc.)