GetEmitOutput And Testfiles

return forEach(diagnostics, diagnostic => diagnostic.category === DiagnosticCategory.Error);