(options: Partial<TestUserConfig>, cliOptions: Partial<TestUserConfig> = {})
| 136 | }) |
| 137 | |
| 138 | async function getConfig<T = SerializedConfig>(options: Partial<TestUserConfig>, cliOptions: Partial<TestUserConfig> = {}): Promise<T> { |
| 139 | let config: T | undefined |
| 140 | |
| 141 | await runVitest({ |
| 142 | root: './fixtures/pool', |
| 143 | include: ['print-config.test.ts'], |
| 144 | $cliOptions: cliOptions, |
| 145 | onConsoleLog(log) { |
| 146 | config = JSON.parse(log) |
| 147 | }, |
| 148 | ...options, |
| 149 | }) |
| 150 | |
| 151 | assert(config) |
| 152 | return config |
| 153 | } |
| 154 | |
| 155 | function normalizeFilename(filename: string) { |
| 156 | return normalize(filename) |
no test coverage detected