Skip to content
Example using Jest and Cypress with TypeScript in a single repo
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci Update cypress orb to v1.8.0 (#4) Jul 10, 2019
cypress code Jun 18, 2019
src code Jun 18, 2019
.gitignore code Jun 18, 2019
LICENSE.md code Jun 18, 2019
README.md code Jun 18, 2019
cypress.json code Jun 18, 2019
jest.config.js code Jun 18, 2019
package-lock.json Update dependency webpack to v4.36.1 Jul 20, 2019
package.json
renovate.json code Jun 18, 2019
tsconfig.json code Jun 18, 2019

README.md

cypress-and-jest-typescript-example renovate-app badge CircleCI

Example using Jest and Cypress with TypeScript in a single repo

If you are using Jest and Cypress types in the same project, they might conflict because both test runners use globals like expect. This project shows how to isolate Cypress TypeScript definitions from Jest TS definitions in the same project.

See the root level tsconfig.json and jest.config.js. The Cypress types are isolated from the root in the file cypress/tsconfig.json

Additional information

See the excellent advice on setting TypeScript for Jest and Cypress in TypeScript Deep Dive e-book by Basarat Syed

Questions or problems

If you hit a problem using Jest and Cypress in the same project, please open an issue in this repository. Include a fork of this repository that shows the problem.

License

This project is licensed under the terms of the MIT license.

You can’t perform that action at this time.