Skip to content

bahmutov/test-add-typescript-to-cypress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Testing module add-typescript-to-cypress

This project shows how Cypress TypeScript definitions can be isolated from the Jest type definitions to avoid "double definition problem".

See tsconfig.json and cypress/tsconfig.json. You can also lint TypeScript by running

npm run check        # checks Jest file
npm run check:cy     # checks Cypress files

If you introduce type errors like cy.foo() the TS compiler will catch it.

You can run Jest test and Cypress tests

npm run unit
npm run cy:run

About

Testing module add-typescript-to-cypress

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published