rsnext/test/unit/phaseConstants.test.ts
JJ Kasper 005b13f1ac
Move unit tests to one folder and migrate them to TypeScript (#28427)
* Move unit tests to one folder

* Migrate unit tests to TypeScript

* add test types to lint

* Ensure ts(x) tests are run with util

* Add tsx extension to jest config

* bump
2021-08-24 07:52:45 -05:00

16 lines
490 B
TypeScript

/* 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')
})
})