vitest-targeted-testing
Use this when adding/fixing UI or smoke tests; prefer targeted Vitest runs first, then widen.
Installation
Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.
Voir la source ↗GuidesInstructions
Frontend (UI) tests
-
Full run:
-
npm run test:ui
-
-
Target by test name:
-
npm run test:ui -- -t "<substring>"
-
-
Target a single file:
-
npm run test:ui -- view/<path>/<file>.test.ts
-
Smoke suite (Vitest + Playwright harness)
-
Full smoke (builds first):
-
npm run smoke
-
-
Quick smoke (no rebuild):
-
npm run test:smoke:quick
-
-
Target by test name:
-
npm run test:smoke:quick -- -t "<substring>"
-
-
Debug a single test in-process:
-
npx vitest watch --config smoke/vitest.config.ts --runInBand
-
Lint/typecheck
- Frontend typecheck:
npm run lint:frontend
Strategy
- Start as narrow as possible (one test/file).
- If failures look environment-related, pivot to the smoke debugging runbook.
Exemples
Consultez les exemples du dépôt source.
Voir la source ↗Historique source
- Date d’indexation
- 2026-01-20
- Mise à jour de l’index
- 2026-01-26
- Branch
- main
Les dates concernent ce répertoire. Consultez le dépôt pour l’historique du code.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!