Skip to main content

Testing and Validation

Use this checklist before merging significant changes.

Fast local checksโ€‹

  • npm run lint:fix:quiet
  • npm run typecheck
  • npm run test

Full quality gateโ€‹

  • npm run lint:all:fix:quiet
  • npm run build
  • npm run docs:build
  • npm run release:verify

When docs/navigation changeโ€‹

Also validate:

  • no broken links in docs build output
  • sidebar routes keep expected context
  • navbar/footer links match current route structure
  • generated static output contains the expected target route when changing homepage, navbar, or footer links

When preset docs changeโ€‹

Run sync scripts that maintain generated preset and rules tables:

npm run build
npm run sync:presets-rules-matrix
npm run sync:readme-rules-table

Use the --write script form only when intentionally updating generated markdown:

node scripts/sync-presets-rules-matrix.mjs --write
node scripts/sync-readme-rules-table.mjs --write

CI parity guidanceโ€‹

If local and CI differ:

  1. capture failing logs into temp/
  2. identify first root-cause error
  3. fix source/config (not generated build output)