Skip to content

Commit cee0fdd

Browse files
committed
docs: use workspace VitePlus for focused tests
1 parent ca566ff commit cee0fdd

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

AGENTS.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33
## Task Completion Requirements
44

55
- Keep local verification focused on the files and packages changed. Run the smallest relevant test set; do not run the full workspace test suite as a routine completion step.
6-
- Use `vp test run <test-files>` for focused built-in Vite+ tests. Use `vp run test` only when the affected package specifically requires its `test` script.
6+
- Run focused built-in Vite+ tests from the affected package with the repository-local Vite+ binary, for example:
7+
`cd apps/web && ../../node_modules/.bin/vp test run src/example.test.ts`.
8+
- Do not run a bare globally installed `vp test`. Even when its version matches the workspace,
9+
the global CLI and local `vite-plus/test` import load separate Vitest runtimes and fail before
10+
test collection with `Cannot read properties of undefined (reading 'config')`.
11+
- Use a package's `test` script only when that package specifically requires it, and invoke it
12+
through tooling that resolves the repository-local `vp`.
713
- Backend changes must include and run focused tests for the changed behavior.
814
- Run targeted formatting, lint, and type checks for the affected scope when available.
915
- Do not run repo-wide `vp check`, `vp run typecheck`, `vp run test`, or equivalent full-suite commands locally unless the user explicitly requests them. CI is responsible for the full verification suite.

0 commit comments

Comments
 (0)