From f93c0bd372d6650b1478a17803b8b634087da132 Mon Sep 17 00:00:00 2001 From: Sebastian Silbermann Date: Thu, 15 Aug 2024 17:32:18 +0200 Subject: [PATCH] Ensure `assertNoRedbox` has a stack when it fails (#68940) --- test/lib/next-test-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lib/next-test-utils.ts b/test/lib/next-test-utils.ts index 9aac68044d560..47ae46446648c 100644 --- a/test/lib/next-test-utils.ts +++ b/test/lib/next-test-utils.ts @@ -875,7 +875,7 @@ export async function assertNoRedbox(browser: BrowserInterface) { `description: ${redboxDescription}\n` + `source: ${redboxSource}` ) - Error.captureStackTrace(error, assertHasRedbox) + Error.captureStackTrace(error, assertNoRedbox) throw error } }