refactor: use glob patterns for vitest projects configuration

Address PR review feedback:
- Use 'libs/*/vitest.config.ts' glob to auto-discover lib projects
- Simplify test:packages script to use --project='!server' exclusion
- New libs with vitest.config.ts will be automatically included

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Kacper
2026-01-05 14:50:47 +01:00
parent 2f51991558
commit d1e3251c29
2 changed files with 3 additions and 10 deletions

View File

@@ -42,7 +42,7 @@
"lint": "npm run lint --workspace=apps/ui",
"test": "npm run test --workspace=apps/ui",
"test:headed": "npm run test:headed --workspace=apps/ui",
"test:packages": "vitest run --project=utils --project=platform --project=prompts --project=model-resolver --project=dependency-resolver --project=git-utils",
"test:packages": "vitest run --project='!server'",
"test:server": "vitest run --project=server",
"test:server:coverage": "vitest run --project=server --coverage",
"test:unit": "vitest run",