From 1e837f3281413c7a9a3a27bb37b6829e3d2a85fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 11 Feb 2019 00:19:31 +0100 Subject: Respect NO_COLOR in TypeScript output (#1736) --- js/compiler_test.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'js/compiler_test.ts') diff --git a/js/compiler_test.ts b/js/compiler_test.ts index 771fbcc6b..57da29ea0 100644 --- a/js/compiler_test.ts +++ b/js/compiler_test.ts @@ -308,6 +308,9 @@ const tsMock = { createLanguageService() { return {} as any; }, + formatDiagnostics(diagnostics: ReadonlyArray, _host: any): string { + return JSON.stringify(diagnostics.map(({ messageText }) => messageText)); + }, formatDiagnosticsWithColorAndContext( diagnostics: ReadonlyArray, _host: any -- cgit v1.2.3