Download next.js/test/development/enoent-during-require/index.test.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 456 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/enoent-during-require/index.test.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/development/enoent-during-require/index.test.ts
-
curl -L -o index.test.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/enoent-during-require/index.test.ts
456 Bytes
| import { nextTestSetup } from 'e2e-utils' | |
| import { check } from 'next-test-utils' | |
| describe('ENOENT during require', () => { | |
| const { next } = nextTestSetup({ | |
| files: __dirname, | |
| }) | |
| it('should show ENOENT error correctly', async () => { | |
| await next.fetch('/') | |
| await check(() => { | |
| expect(next.cliOutput).toContain( | |
| "ENOENT: no such file or directory, open 'does-not-exist.txt'" | |
| ) | |
| return 'yes' | |
| }, 'yes') | |
| }) | |
| }) | |