(overrides: Partial<Config> = {})
| 6 | import { tmpdir } from 'os'; |
| 7 | |
| 8 | function makeConfig(overrides: Partial<Config> = {}): Config { |
| 9 | return { |
| 10 | region: 'global' as const, |
| 11 | baseUrl: 'https://api.mmx.io', |
| 12 | output: 'text', |
| 13 | timeout: 300, |
| 14 | verbose: false, |
| 15 | quiet: false, |
| 16 | noColor: false, |
| 17 | yes: false, |
| 18 | dryRun: false, |
| 19 | nonInteractive: false, |
| 20 | async: false, |
| 21 | ...overrides, |
| 22 | }; |
| 23 | } |
| 24 | |
| 25 | describe('resolveCredential', () => { |
| 26 | const testDir = join(tmpdir(), `mmx-resolver-test-${Date.now()}`); |