Skip to content

Latest commit

 

History

History
57 lines (42 loc) · 1.77 KB

README.md

File metadata and controls

57 lines (42 loc) · 1.77 KB

cypress-fe-testing-biolerplate

This is a Typescript Cypress boilerplate framework with ESLint setup to enforce coding format and structure.

Dependencies

Folder File Structure

Cypress Typescript

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.

Run Tests

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

Example Test

You can find an example test at ./cypress/e2e/exampleTest.cy.ts

ESLint

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

Prettier

ESLint also uses prettier to enforce code formatting (Tabs, Colons, etc.)