(overrides: Record<string, string | undefined> = {})
| 13 | let restoreProcessEnv = () => {}; |
| 14 | |
| 15 | function setTestEnv(overrides: Record<string, string | undefined> = {}) { |
| 16 | restoreProcessEnv(); |
| 17 | restoreProcessEnv = mockProcessEnv({ |
| 18 | OPENAI_API_KEY: undefined, |
| 19 | REPLICATE_API_KEY: undefined, |
| 20 | REPLICATE_API_TOKEN: undefined, |
| 21 | ...overrides, |
| 22 | }); |
| 23 | } |
| 24 | |
| 25 | beforeEach(() => { |
| 26 | setTestEnv(); |
no test coverage detected
searching dependent graphs…