next.js/test/production/app-dir/deopted-into-client-rendering-warning/deopted-into-client-rendering-warning.test.ts
deopted-into-client-rendering-warning.test.ts13 lines349 B
import { nextBuild } from 'next-test-utils'

it('should not show deopted into client rendering warning', async () => {
  const output = await nextBuild(__dirname, undefined, {
    stdout: true,
    stderr: true,
  })
  expect(output.code).toBe(0)
  expect(output.stderr).not.toContain(
    `Entire page / deopted into client-side rendering.`
  )
})
Quest for Codev2.0.0
/
SIGN IN