Skip to content
Merged
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: 9 additions & 0 deletions agents-manage-ui/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ export default defineConfig({
test: {
name: pkgJson.name,
globals: true,
onUnhandledError(error) {
// Suppress known Vitest worker RPC shutdown race condition.
// Next.js triggers background dynamic imports that can outlive test execution;
// when the worker shuts down, these pending imports cause an unhandled rejection.
// See: https://github.com/vitest-dev/vitest/issues/9458
if (error instanceof Error && error.message?.includes('Closing rpc while')) {
return false;
}
},
projects: [
{
extends: true,
Expand Down