10 lines
289 B
TypeScript
10 lines
289 B
TypeScript
|
import { loadEnvConfig } from '../../packages/next-env/'
|
||
|
|
||
|
describe('preserve process env', () => {
|
||
|
it('should not reassign `process.env`', () => {
|
||
|
const originalProcessEnv = process.env
|
||
|
loadEnvConfig('.')
|
||
|
expect(Object.is(originalProcessEnv, process.env)).toBeTrue()
|
||
|
})
|
||
|
})
|