From d4a56b910f2dfa6571937eda4f1d24b5144dcf6a Mon Sep 17 00:00:00 2001 From: Ryan Cavanaugh Date: Tue, 22 May 2018 18:10:03 -0700 Subject: [PATCH] WIP more tests --- src/harness/unittests/tsbuild.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/harness/unittests/tsbuild.ts b/src/harness/unittests/tsbuild.ts index 5ac4e19e769..e84fa403475 100644 --- a/src/harness/unittests/tsbuild.ts +++ b/src/harness/unittests/tsbuild.ts @@ -21,6 +21,12 @@ namespace ts { fs.chdir("/src/tests"); builder.buildProjects(["."]); assertDiagnosticMessages(/*empty*/); + + // Check for outputs. Not an exhaustive list + const expectedOutputs = ["/src/tests/index.js", "/src/core/index.js", "/src/core/index.d.ts"]; + for (const output of expectedOutputs) { + assert(fs.existsSync(output), `Expect file ${output} to exist`); + } }); });