- Notifications
You must be signed in to change notification settings - Fork10
kylemh/next-ts-with-cypress-coverage
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This is aNext.js project bootstrapped withcreate-next-app for the express purpose of demonstrating Next.js, TypeScript, and Cypress working together with working coverage reports.
You can see an example that should work with any combination of Next.js 9 thru 12 and Cypress 5 thru 9here.
Instructions on how to get started with this repo are below. Contributions we would love to receive:
- An example without Babel. This would use theSWC Coverage Plugin. The current examples all have aslower build, slower dev server, and slower hot reload than Next.js applications that DONT use Babel.
- An example usingNext.js's App Directory and providing coverage forserver components.
- Use GitHub Actions to prove that coverage is outputting so that people can freely contribute without manual review ontheir branch.
First, run the development server:
npm run dev# oryarn devOpenhttp://localhost:3000 with your browser to see the result.
Then open the Cypress test runner:
npm run cypress open# oryarn cypress openTo see coverage,yarn build && yarn start followed with a separateyarn cypress run.Once finished,yarn see-cy-coverage.
About
An example create-next-app project using TypeScript, Cypress, @testing-library/cypress, and instrumented coverage
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Contributors3
Uh oh!
There was an error while loading.Please reload this page.
