(apiKey: string)
| 120 | } |
| 121 | |
| 122 | function approveApiKey(apiKey: string): void { |
| 123 | process.env.ANTHROPIC_API_KEY = apiKey |
| 124 | saveGlobalConfig(current => ({ |
| 125 | ...current, |
| 126 | customApiKeyResponses: { |
| 127 | approved: [apiKey], |
| 128 | rejected: [], |
| 129 | }, |
| 130 | })) |
| 131 | } |
| 132 | |
| 133 | beforeAll(async () => { |
| 134 | tempConfigDir = await mkdtemp(join(tmpdir(), 'ncode-bootstrap-test-')) |
no test coverage detected