diff --git a/src/testRunner/unittests/tscWatch/helpers.ts b/src/testRunner/unittests/tscWatch/helpers.ts index 3a9cb9a4fd8..a032c44ee0f 100644 --- a/src/testRunner/unittests/tscWatch/helpers.ts +++ b/src/testRunner/unittests/tscWatch/helpers.ts @@ -218,12 +218,9 @@ namespace ts.tscWatch { host, [ ...map(errors, hostOutputDiagnostic), - ...map( - reportErrorSummary ? - [getErrorSummaryText(errors.length, host.newLine)] : - emptyArray, - hostOutputWatchDiagnostic - ) + ...reportErrorSummary ? + [hostOutputWatchDiagnostic(getErrorSummaryText(errors.length, host.newLine))] : + emptyArray ] ); } diff --git a/tests/projects/demo/zoo/zoo.ts b/tests/projects/demo/zoo/zoo.ts index a00ad8a79e4..8958a65aac1 100644 --- a/tests/projects/demo/zoo/zoo.ts +++ b/tests/projects/demo/zoo/zoo.ts @@ -1,4 +1,3 @@ -// import Animal from '../animals/index'; import { Dog, createDog } from '../animals/index'; export function createZoo(): Array {