( compiler: HybridCompiler, tsconfigPath: string | undefined, )
| 114 | } |
| 115 | |
| 116 | async function writeDiagnosticsFile( |
| 117 | compiler: HybridCompiler, |
| 118 | tsconfigPath: string | undefined, |
| 119 | ): Promise<void> { |
| 120 | if (!tsconfigPath) { |
| 121 | return; |
| 122 | } |
| 123 | const diagPath = getDiagnosticPath(tsconfigPath); |
| 124 | const content = serializeDiagnostics( |
| 125 | tsconfigPath, |
| 126 | compiler.getDiagnostics(), |
| 127 | compiler.optionDiagnostics, |
| 128 | ); |
| 129 | await fs.writeFile(diagPath, content, 'utf-8'); |
| 130 | } |
| 131 | |
| 132 | async function processFile( |
| 133 | file: AnalysisResult, |
no test coverage detected