Unverified Commit 627a5ffb authored by Josh Story's avatar Josh Story Committed by GitHub

fixes error message asserts and lints (#71747)

parent c464672d
...@@ -28,7 +28,7 @@ describe(`Dynamic IO Prospective Fallback`, () => { ...@@ -28,7 +28,7 @@ describe(`Dynamic IO Prospective Fallback`, () => {
} }
expect(next.cliOutput).toContain( 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.'
) )
}) })
...@@ -46,7 +46,7 @@ describe(`Dynamic IO Prospective Fallback`, () => { ...@@ -46,7 +46,7 @@ describe(`Dynamic IO Prospective Fallback`, () => {
await next.start() await next.start()
expect(next.cliOutput).not.toContain( 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.'
) )
}) })
} }
......
...@@ -322,7 +322,7 @@ function runTests(options: { withMinification: boolean }) { ...@@ -322,7 +322,7 @@ function runTests(options: { withMinification: boolean }) {
const expectError = createExpectError(next.cliOutput) const expectError = createExpectError(next.cliOutput)
expectError( 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 // Turbopack doesn't support disabling minification yet
withMinification || isTurbopack ? undefined : 'IndirectionTwo' withMinification || isTurbopack ? undefined : 'IndirectionTwo'
) )
...@@ -331,7 +331,7 @@ function runTests(options: { withMinification: boolean }) { ...@@ -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 // 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 // because we are using canary React and renderToReadableStream rather than experimental React and prerender
expectError( 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 // Turbopack doesn't support disabling minification yet
withMinification || isTurbopack ? undefined : 'IndirectionThree' withMinification || isTurbopack ? undefined : 'IndirectionThree'
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment