vitest-targeted-testing
Use this when adding/fixing UI or smoke tests; prefer targeted Vitest runs first, then widen.
Installation
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
View source ↗GuidesSkill instructions
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.
Examples
Read the usage examples in the source repository.
View source ↗Source history
- Indexed on
- 2026-01-20
- Index updated
- 2026-01-26
- Branch
- main
Index and sync dates describe this directory. View the source repository for code history.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!