vitest
Vitest
Commands
| Task | Command |
|---|---|
| Run all tests | pnpm test |
| Watch / UI mode | pnpm test:development |
| Install browsers | pnpm test:install-browsers |
Default action: When asked to "run tests" or "run vitest" without further qualification, run pnpm test.
The exact scripts behind these commands vary by project — always check
package.jsonto confirm what each script invokes before running it.
Before running or writing tests — explore the project first
Read the project's vitest.config.mts (or vitest.config.ts / vite.config.ts) to understand:
- Which test environment is active (
node,browser,jsdom,happy-dom, etc.) — this determines what globals and APIs are available in tests
More from dnd-mapp/ai-standards
pull-request
Create a GitHub pull request from the current branch following this project's conventions. Use when the user asks to create a pull request, open a PR, or submit changes for review.
12prettier
>
11commit
Analyze all git changes (staged and unstaged), group them by intent, and commit each group using Conventional Commits format with scopes. Use when committing changes, making commits, or when the user asks to "commit" or "create commits" from current changes.
11eslint
>
11prisma
>
10angular
>
10