(nextEnv: Record<string, string | undefined>)
| 86 | } |
| 87 | |
| 88 | function replaceProcessEnv(nextEnv: Record<string, string | undefined>): void { |
| 89 | for (const key of Object.keys(process.env)) { |
| 90 | Reflect.deleteProperty(process.env, key); |
| 91 | } |
| 92 | Object.assign(process.env, nextEnv); |
| 93 | } |
| 94 | |
| 95 | export function mockProcessEnv( |
| 96 | overrides: Record<string, string | undefined> = {}, |
no outgoing calls
no test coverage detected
searching dependent graphs…