feat: add testing infrastructure — Vitest, Playwright, CI, git hooks
Add comprehensive testing covering 420 unit/handler tests across 24 Vitest files, 9 Playwright E2E specs, accessibility scans, and visual regression. Includes GitHub Actions CI, Husky pre-push hook, and TESTING.md docs.
This commit is contained in:
parent
036af95e00
commit
1e30ba23cd
35 changed files with 3637 additions and 5 deletions
|
|
@ -12,11 +12,15 @@ Ghost Guild is a membership community platform for game developers exploring coo
|
|||
npm run dev # Start dev server at http://localhost:3000
|
||||
npm run build # Production build
|
||||
npm run preview # Preview production build
|
||||
npm run test:run # Vitest single run (pre-push hook)
|
||||
npm run test:e2e # Playwright E2E (needs dev server + MongoDB)
|
||||
npm run test:a11y # Accessibility scans
|
||||
npm run test:all # Vitest + Playwright
|
||||
```
|
||||
|
||||
**Dev helpers:** `GET /api/dev/test-login` — creates a test admin user and sets auth cookie (dev only, blocked in production). Navigate to this URL to access admin pages during development.
|
||||
|
||||
No test framework is currently configured.
|
||||
**Testing:** Vitest for unit/handler tests (`tests/`), Playwright for E2E (`e2e/`). Husky pre-push hook runs Vitest. See `TESTING.md` for details.
|
||||
|
||||
## Architecture
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue