Skip to content

Commit

Permalink
fixes error message asserts and lints (#71747)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnoff authored Oct 23, 2024
1 parent c464672 commit 627a5ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe(`Dynamic IO Prospective Fallback`, () => {
}

expect(next.cliOutput).toContain(
'In Route "/blog/[slug]" this component accessed data without a fallback UI available somewhere above it using Suspense.'
'In Route "/blog/[slug]" this component accessed data without a Suspense boundary above it to provide a fallback UI.'
)
})

Expand All @@ -46,7 +46,7 @@ describe(`Dynamic IO Prospective Fallback`, () => {
await next.start()

expect(next.cliOutput).not.toContain(
'In Route "/blog/[slug]" this component accessed data without a fallback UI available somewhere above it using Suspense.'
'In Route "/blog/[slug]" this component accessed data without a Suspense boundary above it to provide a fallback UI.'
)
})
}
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/app-dir/dynamic-io-errors/dynamic-io-errors.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ function runTests(options: { withMinification: boolean }) {
const expectError = createExpectError(next.cliOutput)

expectError(
'In Route "/" this component accessed data without a fallback UI available somewhere above it using Suspense.',
'In Route "/" this component accessed data without a Suspense boundary above it to provide a fallback UI.',
// Turbopack doesn't support disabling minification yet
withMinification || isTurbopack ? undefined : 'IndirectionTwo'
)
Expand All @@ -331,7 +331,7 @@ function runTests(options: { withMinification: boolean }) {
// one task actually reports and error at the moment. We should fix upstream but for now we exclude the second error when PPR is off
// because we are using canary React and renderToReadableStream rather than experimental React and prerender
expectError(
'In Route "/" this component accessed data without a fallback UI available somewhere above it using Suspense.',
'In Route "/" this component accessed data without a Suspense boundary above it to provide a fallback UI.',
// Turbopack doesn't support disabling minification yet
withMinification || isTurbopack ? undefined : 'IndirectionThree'
)
Expand Down

0 comments on commit 627a5ff

Please sign in to comment.