diff --git a/src/infra/unhandled-rejections.fatal-detection.test.ts b/src/infra/unhandled-rejections.fatal-detection.test.ts index d8daa8e635..40f1ee6bbc 100644 --- a/src/infra/unhandled-rejections.fatal-detection.test.ts +++ b/src/infra/unhandled-rejections.fatal-detection.test.ts @@ -20,7 +20,7 @@ describe("installUnhandledRejectionHandler - fatal detection", () => { if (code !== undefined && code !== null) { exitCalls.push(code); } - throw new Error("process.exit"); + return undefined as never; }); consoleErrorSpy = vi.spyOn(console, "error").mockImplementation(() => {});