react-code-dataset / next.js /test /e2e /app-dir /app-fetch-deduping-errors /app-fetch-deduping-errors.test.ts
Download next.js/test/e2e/app-dir/app-fetch-deduping-errors/app-fetch-deduping-errors.test.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 383 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/app-fetch-deduping-errors/app-fetch-deduping-errors.test.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/e2e/app-dir/app-fetch-deduping-errors/app-fetch-deduping-errors.test.ts
-
curl -L -o app-fetch-deduping-errors.test.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/app-fetch-deduping-errors/app-fetch-deduping-errors.test.ts
383 Bytes
| import { nextTestSetup } from 'e2e-utils' | |
| describe('app-fetch-errors', () => { | |
| const { next } = nextTestSetup({ | |
| files: __dirname, | |
| }) | |
| it('should still successfully render when a fetch request that acquires a cache lock errors', async () => { | |
| const browser = await next.browser('/1') | |
| expect(await browser.elementByCss('body').text()).toBe('Hello World 1') | |
| }) | |
| }) | |