Skip to content

Commit 627a5ff

Browse files
authored
fixes error message asserts and lints (#71747)
1 parent c464672 commit 627a5ff

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/e2e/app-dir/dynamic-io-errors/dynamic-io-errors.prospective-fallback.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe(`Dynamic IO Prospective Fallback`, () => {
2828
}
2929

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

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

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

test/e2e/app-dir/dynamic-io-errors/dynamic-io-errors.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ function runTests(options: { withMinification: boolean }) {
322322
const expectError = createExpectError(next.cliOutput)
323323

324324
expectError(
325-
'In Route "/" this component accessed data without a fallback UI available somewhere above it using Suspense.',
325+
'In Route "/" this component accessed data without a Suspense boundary above it to provide a fallback UI.',
326326
// Turbopack doesn't support disabling minification yet
327327
withMinification || isTurbopack ? undefined : 'IndirectionTwo'
328328
)
@@ -331,7 +331,7 @@ function runTests(options: { withMinification: boolean }) {
331331
// 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
332332
// because we are using canary React and renderToReadableStream rather than experimental React and prerender
333333
expectError(
334-
'In Route "/" this component accessed data without a fallback UI available somewhere above it using Suspense.',
334+
'In Route "/" this component accessed data without a Suspense boundary above it to provide a fallback UI.',
335335
// Turbopack doesn't support disabling minification yet
336336
withMinification || isTurbopack ? undefined : 'IndirectionThree'
337337
)

0 commit comments

Comments
 (0)