Download next.js/test/unit/phaseConstants.test.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 490 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/unit/phaseConstants.test.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/unit/phaseConstants.test.ts
-
curl -L -o phaseConstants.test.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/unit/phaseConstants.test.ts
490 Bytes
| /* eslint-env jest */ | |
| import { | |
| PHASE_EXPORT, | |
| PHASE_PRODUCTION_BUILD, | |
| PHASE_PRODUCTION_SERVER, | |
| PHASE_DEVELOPMENT_SERVER, | |
| } from 'next/constants' | |
| describe('phaseConstants', () => { | |
| it('should set phases correctly', () => { | |
| expect(PHASE_EXPORT).toBe('phase-export') | |
| expect(PHASE_PRODUCTION_BUILD).toBe('phase-production-build') | |
| expect(PHASE_PRODUCTION_SERVER).toBe('phase-production-server') | |
| expect(PHASE_DEVELOPMENT_SERVER).toBe('phase-development-server') | |
| }) | |
| }) | |