diff --git a/test/integration/react-18/app/pages/suspense/unwrapped.js b/test/integration/react-18/app/pages/suspense/unwrapped.js deleted file mode 100644 index 93c32bbbc501..000000000000 --- a/test/integration/react-18/app/pages/suspense/unwrapped.js +++ /dev/null @@ -1,19 +0,0 @@ -import React, { Suspense } from 'react' -import dynamic from 'next/dynamic' - -// flag for testing -const wrapped = true - -const Hello = dynamic(() => import('../../components/hello'), { - suspense: true, -}) - -export default function Unwrapped() { - if (!wrapped) return - - return ( - - - - ) -} diff --git a/test/integration/react-18/test/index.test.js b/test/integration/react-18/test/index.test.js index 2660a9fd20b1..5d9754776a28 100644 --- a/test/integration/react-18/test/index.test.js +++ b/test/integration/react-18/test/index.test.js @@ -95,20 +95,6 @@ describe('React 18 Support', () => { describe('Basics', () => { runTests('default setting with react 18', (context) => basics(context)) - - it('suspense is not allowed in blocking rendering mode (dev)', async () => { - // set dynamic.suspense = true but not wrapping with - unwrappedPage.replace('wrapped = true', 'wrapped = false') - const appPort = await findPort() - const app = await launchApp(appDir, appPort, { nodeArgs }) - const html = await renderViaHTTP(appPort, '/suspense/unwrapped') - unwrappedPage.restore() - await killApp(app) - - expect(html).toContain( - 'A React component suspended while rendering, but no fallback UI was specified' - ) - }) }) // React 18 with Strict Mode enabled might cause double invocation of lifecycle methods.