Download next.js/test/integration/babel-next-image/babel-next-image.test.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 534 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/integration/babel-next-image/babel-next-image.test.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/integration/babel-next-image/babel-next-image.test.js
-
curl -L -o babel-next-image.test.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/integration/babel-next-image/babel-next-image.test.js
534 Bytes
| /* eslint-env jest */ | |
| import { fetchViaHTTP, findPort, killApp, launchApp } from 'next-test-utils' | |
| ;(process.env.IS_TURBOPACK_TEST ? describe.skip : describe)( | |
| 'babel-next-image', | |
| () => { | |
| let appPort | |
| let app | |
| beforeAll(async () => { | |
| appPort = await findPort() | |
| app = await launchApp(__dirname, appPort) | |
| }) | |
| afterAll(() => killApp(app)) | |
| it('should work with babel and next/image', async () => { | |
| const res = await fetchViaHTTP(appPort, '/') | |
| expect(res.status).toBe(200) | |
| }) | |
| } | |
| ) | |