()
| 60 | // which is why we need to delete it if it's supposed to be undefined |
| 61 | // Source: https://stackoverflow.com/a/60147167 |
| 62 | const resetValue = () => { |
| 63 | if (initialValue !== undefined) { |
| 64 | process.env[key] = initialValue |
| 65 | } else { |
| 66 | delete process.env[key] |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | return [setValue, resetValue] |
| 71 | } |
no outgoing calls
no test coverage detected