This project is a lightweight React app, intended to create some somewhat interesting scenarios for experimenting with playwright, WDIO, and other automation tools that strike your fancy.
Will launch at http://localhost:9001/qa-playground:
npm start
pre-commit:
- Staged files will be formatted and linted with lint-staged and prettier; errors prevent commit.
- NOTE: src folder can be formatted at any time with
npm run prettier
, and checked by eslint withnpm run lint
.
pre-push:
- Unit tests will run; failures prevent the push.
Deploy the site to GitHub Pages, as described below. Wraps the npm run build
script.
npm run deploy
Unit tests are written with React Testing Library.
To run all tests:
npm run test:unit
To run an individual test, see the command at the top of the file. Example:
npm run test:unit -- -t 'Main Tab Dates - Date Range'
This was built on node 16.15.1 / npm 8.11.0.
This project is a means to an end, and a simple deployment was a top priority.