Skip to content

Commit

Permalink
update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Oct 23, 2024
1 parent 51e9e21 commit dbbfbc4
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions test/development/app-dir/owner-stack/owner-stack.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,21 @@ describe('app-dir - owner-stack', () => {

const stackFramesContent = await getStackFramesContent(browser)

expect(stackFramesContent).toMatchInlineSnapshot(`
"at useThrowError (app/browser/caught/page.js (39:3))
at useErrorHook (app/browser/caught/page.js (29:3))
at Thrower (app/browser/caught/page.js (23:8))
at Inner (app/browser/caught/page.js (43:11))"
`)
if (process.env.TURBOPACK) {
expect(stackFramesContent).toMatchInlineSnapshot(`
"at useErrorHook (app/browser/caught/page.js (39:3))
at Thrower (app/browser/caught/page.js (29:3))
at Inner (app/browser/caught/page.js (23:7))
at Page (app/browser/caught/page.js (43:10))"
`)
} else {
expect(stackFramesContent).toMatchInlineSnapshot(`
"at useThrowError (app/browser/caught/page.js (39:3))
at useErrorHook (app/browser/caught/page.js (29:3))
at Thrower (app/browser/caught/page.js (23:8))
at Inner (app/browser/caught/page.js (43:11))"
`)
}

expect(normalizeStackTrace(errorLog)).toMatchInlineSnapshot(`
"Error: browser error
Expand Down

0 comments on commit dbbfbc4

Please sign in to comment.