Skip to content

Commit

Permalink
remove invalid test
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Mar 2, 2022
1 parent be42121 commit e39a477
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 33 deletions.
19 changes: 0 additions & 19 deletions test/integration/react-18/app/pages/suspense/unwrapped.js

This file was deleted.

14 changes: 0 additions & 14 deletions test/integration/react-18/test/index.test.js
Expand Up @@ -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 <Suspense>
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.
Expand Down

0 comments on commit e39a477

Please sign in to comment.