Skip to content

Commit

Permalink
test(fixture): update assertion for turbopack (#60579)
Browse files Browse the repository at this point in the history
### What?

Minor update to test assertion to work with turbopack.

Closes PACK-2234
  • Loading branch information
kwonoj authored Jan 12, 2024
1 parent e620531 commit 4e71496
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
13 changes: 7 additions & 6 deletions test/development/acceptance-app/component-stack.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,13 @@ describe('Component Stack in error overlay', () => {

await session.waitForAndOpenRuntimeError()

expect(await session.getRedboxComponentStack()).toMatchInlineSnapshot(`
"p
div
Component
main"
`)
const expected = `p
div
Component
main`
expect((await session.getRedboxComponentStack()).trim()).toStartWith(
expected
)

await cleanup()
})
Expand Down
4 changes: 2 additions & 2 deletions test/turbopack-tests-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -1040,10 +1040,10 @@
"runtimeError": false
},
"test/development/acceptance-app/component-stack.test.ts": {
"passed": [],
"failed": [
"passed": [
"Component Stack in error overlay should show a component stack on hydration error"
],
"failed": [],
"pending": [],
"flakey": [],
"runtimeError": false
Expand Down

0 comments on commit 4e71496

Please sign in to comment.