Download next.js/test/development/duplicate-pages/duplicate-pages.test.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 302 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/duplicate-pages/duplicate-pages.test.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/development/duplicate-pages/duplicate-pages.test.ts
-
curl -L -o duplicate-pages.test.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/duplicate-pages/duplicate-pages.test.ts
302 Bytes
| import { nextTestSetup } from 'e2e-utils' | |
| describe('Handles Duplicate Pages', () => { | |
| const { next } = nextTestSetup({ | |
| files: __dirname, | |
| }) | |
| it('Shows warning in development', async () => { | |
| await next.render('/hello') | |
| expect(next.cliOutput).toMatch(/Duplicate page detected/) | |
| }) | |
| }) | |