( config: PotentialConfig | undefined, reporter: BuiltinReporters | BenchmarkBuiltinReporters | 'html', )
| 8 | } |
| 9 | |
| 10 | export function getOutputFile( |
| 11 | config: PotentialConfig | undefined, |
| 12 | reporter: BuiltinReporters | BenchmarkBuiltinReporters | 'html', |
| 13 | ): string | undefined { |
| 14 | if (!config?.outputFile) { |
| 15 | return |
| 16 | } |
| 17 | |
| 18 | if (typeof config.outputFile === 'string') { |
| 19 | return config.outputFile |
| 20 | } |
| 21 | |
| 22 | return config.outputFile[reporter] |
| 23 | } |
| 24 | |
| 25 | export function createDefinesScript(define: Record<string, any> | undefined): string { |
| 26 | if (!define) { |
no outgoing calls
no test coverage detected