Skip to content

muratkeremozcan/tour-of-heroes-react-cypress-ts

Repository files navigation

codecov cypress version cypress version cypress version Tour of Heroes CCTDD unit-lint-typecheck-e2e-ct

react version react-scripts version cypress version typescript version jest version eslint version prettier version renovate-app badge

The application built in the book CCTDD: Cypress Component Test Driven Development.

yarn install --registry https://registry.yarnpkg.com # specify the registry in case you are using a proprietary registry

# parallel unit, typecheck, lint, format
yarn validate

# no need to have server running for these:
yarn cy:open-ct # for cypress component test runner
yarn cy:run-ct # headless version

# runs the ui and api servers, then opens e2e runner
yarn cy:open-e2e
yarn cy:run-e2e  # headless version

yarn test # run unit tests with jest

CI

build  -->  Cypress e2e test
       -->  Cypress component test
       -->  Typecheck
       -->  Lint
       -->  Unit test