Function
makeConfig
(overrides: Partial<Config> = {})
Source from the content-addressed store, hash-verified
| 5 | import type { GlobalFlags } from '../../../src/types/flags'; |
| 6 | |
| 7 | function makeConfig(overrides: Partial<Config> = {}): Config { |
| 8 | return { |
| 9 | apiKey: 'test-key', |
| 10 | region: 'global', |
| 11 | baseUrl: 'https://api.mmx.io', |
| 12 | output: 'text', |
| 13 | timeout: 10, |
| 14 | verbose: false, |
| 15 | quiet: false, |
| 16 | noColor: true, |
| 17 | yes: false, |
| 18 | dryRun: false, |
| 19 | nonInteractive: true, |
| 20 | async: false, |
| 21 | ...overrides, |
| 22 | }; |
| 23 | } |
| 24 | |
| 25 | const baseFlags: GlobalFlags = { |
| 26 | quiet: false, |
Tested by
no test coverage detected