Download next.js/test/e2e/app-document/index.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/e2e/app-document/index.test.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/e2e/app-document/index.test.ts
-
curl -L -o index.test.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-document/index.test.ts
349 Bytes
| import { nextTestSetup } from 'e2e-utils' | |
| describe('Document and App', () => { | |
| const { next } = nextTestSetup({ | |
| files: __dirname, | |
| }) | |
| it('should not have any missing key warnings', async () => { | |
| await next.fetch('/') | |
| expect(next.cliOutput).not.toContain( | |
| 'Each child in a list should have a unique "key" prop' | |
| ) | |
| }) | |
| }) | |