(index: number)
| 28 | function withEnvVars(vars: Record<string, string | undefined>, fn: () => void): void { |
| 29 | const entries = Object.entries(vars); |
| 30 | const run = (index: number): void => { |
| 31 | if (index >= entries.length) { |
| 32 | fn(); |
| 33 | return; |
| 34 | } |
| 35 | const [name, value] = entries[index]!; |
| 36 | withEnv(name, value, () => run(index + 1)); |
| 37 | }; |
| 38 | run(0); |
| 39 | } |
| 40 |
no test coverage detected