Skip to content

SysSU/cypress-fe-testing-biolerplate

Repository files navigation

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.)

About

A boilerplate framework for Cypress using JS/TS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published