Download next.js/test/unit/preserve-process-env.test.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 289 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/unit/preserve-process-env.test.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/unit/preserve-process-env.test.ts
-
curl -L -o preserve-process-env.test.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/unit/preserve-process-env.test.ts
289 Bytes
| 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() | |
| }) | |
| }) | |