Skip to content

Commit c388ba2

Browse files
committed
fix(ci): prevent vitest worker timeout during coverage
Use --no-file-parallelism for coverage runs in CI to prevent "Timeout calling onTaskUpdate" errors caused by v8 coverage instrumentation overwhelming worker IPC on single-core runners. Also add teardownTimeout to vitest config.
1 parent 3e9cc03 commit c388ba2

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444

4545
- name: Test with coverage
4646
if: matrix.node-version == 22
47-
run: pnpm vitest run --coverage
47+
run: pnpm vitest run --coverage --no-file-parallelism
4848

4949
- name: Upload coverage
5050
if: matrix.node-version == 22

vitest.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export default defineConfig({
1212
include: ["src/**/*.test.ts", "tests/**/*.test.ts"],
1313
testTimeout: 15000,
1414
hookTimeout: 15000,
15+
teardownTimeout: 30000,
1516
coverage: {
1617
provider: "v8",
1718
include: ["src/**/*.ts"],

0 commit comments

Comments
 (0)