Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion vite.integration.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ export default defineConfig({
fileParallelism: false,
pool: 'forks',
// Vitest 4 removed test.poolOptions; poolOptions.forks.singleFork is now maxWorkers: 1.
maxWorkers: 1
maxWorkers: 1,
// Send worker console output straight to stdout/stderr instead of routing it
// through Vitest's onUserConsoleLog RPC. Handlers here do fire-and-forget logging
// (e.g. the proxy's enrichOperation in a finally block) that outlives the request,
// so a stray log can land while the worker is tearing down. With interception on,
// that races the closing RPC and fails the run with
// "EnvironmentTeardownError: Closing rpc while onUserConsoleLog was pending".
disableConsoleIntercept: true
}
});
Loading