Download next.js/test/production/empty-ssg-fallback/empty-ssg-fallback.test.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 293 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/production/empty-ssg-fallback/empty-ssg-fallback.test.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/production/empty-ssg-fallback/empty-ssg-fallback.test.ts
-
curl -L -o empty-ssg-fallback.test.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/production/empty-ssg-fallback/empty-ssg-fallback.test.ts
293 Bytes
| import { nextTestSetup } from 'e2e-utils' | |
| describe('empty-ssg-fallback', () => { | |
| const { next } = nextTestSetup({ | |
| files: __dirname, | |
| }) | |
| it('should not cache 404 error page', async () => { | |
| const res = await next.fetch('/any-non-existed') | |
| expect(res.status).toBe(404) | |
| }) | |
| }) | |