mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-30 06:12:03 +00:00
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:
@@ -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",
|
||||
|
||||
@@ -3,14 +3,7 @@ import { defineConfig } from 'vitest/config';
|
||||
export default defineConfig({
|
||||
test: {
|
||||
// Use projects instead of deprecated workspace
|
||||
projects: [
|
||||
'libs/utils',
|
||||
'libs/platform',
|
||||
'libs/prompts',
|
||||
'libs/model-resolver',
|
||||
'libs/dependency-resolver',
|
||||
'libs/git-utils',
|
||||
'apps/server',
|
||||
],
|
||||
// Glob patterns auto-discover projects with vitest.config.ts
|
||||
projects: ['libs/*/vitest.config.ts', 'apps/server'],
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user