react-code-dataset / next.js /test /production /app-dir /deopted-into-client-rendering-warning /deopted-into-client-rendering-warning.test.ts
Download next.js/test/production/app-dir/deopted-into-client-rendering-warning/deopted-into-client-rendering-warning.test.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 349 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/production/app-dir/deopted-into-client-rendering-warning/deopted-into-client-rendering-warning.test.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/production/app-dir/deopted-into-client-rendering-warning/deopted-into-client-rendering-warning.test.ts
-
curl -L -o deopted-into-client-rendering-warning.test.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/production/app-dir/deopted-into-client-rendering-warning/deopted-into-client-rendering-warning.test.ts
349 Bytes
| 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.` | |
| ) | |
| }) | |