sandbox-agent/factory/packages/backend/test/setup.ts
2026-03-09 13:58:52 -07:00

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;
});