Unit and integration testing
npx playwright codegen https://covid19.ca.gov
npm test
Checkout the commands in the scripts section of the package.json
Is shorthand for npm run test, and runs the script named test in the package.json scripts section
npm run test:server
from the cannabis repository root
npx cypress open
npm run lint:eslint
npm run lint:eslint:fix
npm run lint
run eslint only, get a report of any issues
run both prettier and eslint
run eslint and have it fix anything it can safely
Slow test suites
Brittle tests that break with unrelated code changes
Flaky tests
Adding tests is too hard/not prioritized
Strict requirements like mandating 100% code coverage or to include a test with every code change cause problems