(options: ng.CompilerOptions, diags: readonly ts.Diagnostic[])
| 155 | } |
| 156 | |
| 157 | export function expectNoDiagnostics(options: ng.CompilerOptions, diags: readonly ts.Diagnostic[]) { |
| 158 | const errorDiags = diags.filter((d) => d.category !== ts.DiagnosticCategory.Message); |
| 159 | if (errorDiags.length) { |
| 160 | throw new Error(`Expected no diagnostics: ${ng.formatDiagnostics(errorDiags)}`); |
| 161 | } |
| 162 | } |
| 163 | |
| 164 | export function expectNoDiagnosticsInProgram(options: ng.CompilerOptions, p: ng.Program) { |
| 165 | expectNoDiagnostics(options, [ |
no test coverage detected
searching dependent graphs…