Skip to content

Commit

Permalink
Ensure assertNoRedbox has a stack when it fails
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Aug 15, 2024
1 parent f1ca90f commit 6eb362a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/lib/next-test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 6eb362a

Please sign in to comment.