diff --git a/vitest.config.ts b/vitest.config.ts index 68ec420..fa8ebba 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -10,5 +10,15 @@ export default defineConfig({ test: { environment: "edge-runtime", server: { deps: { inline: ["convex-test"] } }, + onUnhandledError(error): boolean | void { + const msg = error?.message ?? String(error); + if ( + typeof msg === "string" && + msg.includes("Write outside of transaction") && + msg.includes("_scheduled_functions") + ) { + return false; + } + }, }, });