From f09894b294a866d70a8ef30a7c673170cebb32c8 Mon Sep 17 00:00:00 2001 From: Josh Story Date: Wed, 23 Oct 2024 12:07:48 -0700 Subject: [PATCH] fixes error message asserts and lints --- .../dynamic-io-errors.prospective-fallback.test.ts | 4 ++-- test/e2e/app-dir/dynamic-io-errors/dynamic-io-errors.test.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/e2e/app-dir/dynamic-io-errors/dynamic-io-errors.prospective-fallback.test.ts b/test/e2e/app-dir/dynamic-io-errors/dynamic-io-errors.prospective-fallback.test.ts index 308d7514f3f75f..48ca0b9ef09e3d 100644 --- a/test/e2e/app-dir/dynamic-io-errors/dynamic-io-errors.prospective-fallback.test.ts +++ b/test/e2e/app-dir/dynamic-io-errors/dynamic-io-errors.prospective-fallback.test.ts @@ -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.' ) }) @@ -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.' ) }) } diff --git a/test/e2e/app-dir/dynamic-io-errors/dynamic-io-errors.test.ts b/test/e2e/app-dir/dynamic-io-errors/dynamic-io-errors.test.ts index 54691ed3413406..99da76207ed852 100644 --- a/test/e2e/app-dir/dynamic-io-errors/dynamic-io-errors.test.ts +++ b/test/e2e/app-dir/dynamic-io-errors/dynamic-io-errors.test.ts @@ -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' ) @@ -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' )