This document defines where each test type should run in this repository.
- Unit tests run locally and in CI.
- E2E tests (Playwright) run in CI only.
Run unit tests locally:
npm testDo not run npm run test:e2e as part of local git hooks.
CI runs both test categories for non-docs changes:
- Unit tests in the
testjob - E2E tests in the
e2ejob
For pull requests that only change documentation files (README.md, docs/**, .github/**/*.md), both CI test commands are skipped:
npm testnpm run test:e2e
The CI job still installs dependencies, runs the Hugo production build, and validates Algolia JSON outputs for docs-only pull requests.
See CI workflow for details.