- Run
yarn add cypress --dev
- Add
cypress.json to root
- Run
yarn run cypress open.
- Close the window
- Rename
cypress/plugins/index.js to index.cjs
- Create a new
tsconfig.json inside the cypress folder and copy the contents from this gist
- Add the following to your
.gitignore:
cypress/videos
cypress/screenshots
- Add the following to the scripts in
package.json:
"test:integration":"yarn dev & cypress run",
- Change the current
package.json test script to be named test:unit
- Replace the contents of the
check.yaml github workflow with the one in this gist