Root cause: tinypool worker teardown calls kill() which returns EPERM in the act_runner host environment on Node.js v25.2.1. Tests pass but the vitest process crashes during cleanup, causing CI failure. Fix: --pool forks CLI flag on every package/service test script, plus pool: 'forks' in all vitest.config.ts files. This uses child_process.fork() worker management which handles termination cleanly. 60 package.json files updated, 10 vitest.config.ts files updated.
11 lines
306 B
TypeScript
11 lines
306 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
// Use happy-dom to avoid jsdom's heavy dependency chain and ESM/CJS edge cases.
|
|
// This package only needs a minimal DOM + localStorage for unit tests.
|
|
environment: 'happy-dom',
|
|
pool: 'forks',
|
|
},
|
|
});
|