A template with React, TS, Cypress (e2e & ct), GHA with CI architecture, Jest, ESLint, Prettier, Renovate, Husky, Lint-staged, and most of the things you need to get started with a new project.
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
build --> Cypress e2e test
--> Cypress component test
--> Typecheck
--> Lint
--> Unit test
When updating packages, make sure that
react-scripts
andjest
versions stay compatible. Ex:react-scripts
latest version usesjest v27
, butjest
's latest version is29
. Double check node modules orreact-scripts
docs. The incompatibility may cause tools like WallabyJs to malfunction.