Download next.js/test/production/escheck-output/index.test.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 666 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/production/escheck-output/index.test.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/production/escheck-output/index.test.ts
-
curl -L -o index.test.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/production/escheck-output/index.test.ts
666 Bytes
| import { createNext } from 'e2e-utils' | |
| import { NextInstance } from 'e2e-utils' | |
| describe('ES Check .next output', () => { | |
| let next: NextInstance | |
| afterEach(() => next.destroy()) | |
| it('should emit ES2020 with default', async () => { | |
| next = await createNext({ | |
| files: __dirname, | |
| dependencies: { 'es-check': '7.0.1' }, | |
| packageJson: { | |
| scripts: { | |
| build: 'next build && es-check es2020 ".next/static/**/*.js"', | |
| }, | |
| }, | |
| installCommand: 'pnpm i', | |
| buildCommand: 'pnpm build', | |
| }) | |
| expect(next.cliOutput).toContain( | |
| 'info: ES-Check: there were no ES version matching errors! 🎉' | |
| ) | |
| }) | |
| }) | |