mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 20:03:11 +00:00
9 lines
368 B
TypeScript
9 lines
368 B
TypeScript
// Suppress RivetKit traces driver flush errors that occur during test cleanup.
|
|
// These happen when the traces driver tries to write after actor state is unloaded.
|
|
process.on("unhandledRejection", (reason) => {
|
|
if (reason instanceof Error && reason.message.includes("state not loaded")) {
|
|
return;
|
|
}
|
|
// Re-throw non-suppressed rejections
|
|
throw reason;
|
|
});
|