fix(test): vitest 4 projects + src/web jsdom env #59
Reference in New Issue
Block a user
Delete Branch "fix/vitest-workspace-projects"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fixes `pnpm test:run` (workspace-level) which broke after the personality
PR landed. The new src/web tests need jsdom for `localStorage`, but vitest 4
quietly stopped honoring `vitest.workspace.ts` so per-package configs
weren't being picked up — every project ran under the root config's Node env.
`projects` field (vitest 4's replacement for `vitest.workspace.ts`).
jsdom env and test include glob.
double-discovery under the wrong env.
After: 1999/1999 across 149 test files (was 1992/1996 with 4 src/web failures).
🤖 Generated with Claude Code
projects\field