perf: speed up tests with parallel execution and fix type errors
- Add isolate: true to vitest configs for safe parallel test execution - Simplify engine test script from 7 sequential runs to single parallel run - Fix TypeScript type errors in Column, Board, WorktreeGroup, and App components - Fix board-mobile test to match current TaskCard tap behavior - Relax App deep-link test to handle React Strict Mode behavior
This commit is contained in:
@@ -18,8 +18,9 @@
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"test": "vitest run --exclude src/executor.test.ts && pnpm run test:executor",
|
||||
"test:executor": "vitest run src/executor.test.ts -t \"TaskExecutor with semaphore|TaskExecutor worktreeInitCommand|TaskExecutor worktree naming\" && vitest run src/executor.test.ts -t \"TaskExecutor worktree recovery\" && vitest run src/executor.test.ts -t \"TaskExecutor dependency-based worktree creation\" && vitest run src/executor.test.ts -t \"TaskExecutor worktree pool integration|WorktreePool capacity|Merger worktree pool integration\" && vitest run src/executor.test.ts -t \"buildExecutionPrompt|summarizeToolArgs|TaskExecutor pause behavior|TaskExecutor global pause behavior|TaskExecutor enginePaused soft pause\" && vitest run src/executor.test.ts -t \"Code review verdict|RETHINK verdict handling|Plan RETHINK verdict handling|E2E review pipeline|task_add_dep tool|TaskExecutor usage limit detection|Per-task model overrides|Invalid transition error handling|TaskExecutor task_done with summary|Workflow Steps Execution|Real-time steering injection|TaskExecutor loop recovery|TaskExecutor agent execution flow|StepSessionExecutor integration\""
|
||||
"test": "vitest run",
|
||||
"test:executor": "vitest run src/executor.test.ts",
|
||||
"test:watch": "vitest src/executor.test.ts --watch"
|
||||
},
|
||||
"dependencies": {
|
||||
"@fusion/core": "workspace:*",
|
||||
|
||||
@@ -8,6 +8,8 @@ export default defineConfig({
|
||||
maxWorkers,
|
||||
fileParallelism: true,
|
||||
pool: "threads",
|
||||
// Enable isolate to allow parallel execution of tests with conflicting mocks
|
||||
isolate: true,
|
||||
coverage: {
|
||||
enabled: false,
|
||||
reporter: ["text", "html", "json"],
|
||||
|
||||
Reference in New Issue
Block a user