Download next.js/test/development/webpack-issuer-deprecation-warning/index.test.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 965 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/webpack-issuer-deprecation-warning/index.test.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/development/webpack-issuer-deprecation-warning/index.test.ts
-
curl -L -o index.test.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/webpack-issuer-deprecation-warning/index.test.ts
965 Bytes
| import { createNext } from 'e2e-utils' | |
| import { NextInstance } from 'e2e-utils' | |
| import { renderViaHTTP } from 'next-test-utils' | |
| // Skip on Turbopack because it's not supported | |
| ;(process.env.IS_TURBOPACK_TEST ? describe.skip : describe)( | |
| 'webpack-issuer-deprecation-warning', | |
| () => { | |
| let next: NextInstance | |
| beforeAll(async () => { | |
| next = await createNext({ | |
| files: { | |
| 'pages/index.js': ` | |
| export default function Page() { | |
| return <p>hello world | |
| } | |
| `, | |
| }, | |
| dependencies: {}, | |
| }) | |
| }) | |
| afterAll(() => next.destroy()) | |
| it('should not appear deprecation warning about webpack module issuer', async () => { | |
| const html = await renderViaHTTP(next.url, '/') | |
| expect(html).toContain('Syntax Error') | |
| expect(next.cliOutput).not.toContain( | |
| '[DEP_WEBPACK_MODULE_ISSUER] DeprecationWarning: Module.issuer: Use new ModuleGraph API' | |
| ) | |
| }) | |
| } | |
| ) | |