From fc63eb9b7b08d6b770862abc6c447cc67495abdb Mon Sep 17 00:00:00 2001 From: Ryan Cavanaugh Date: Sun, 10 Jun 2018 15:09:56 -0700 Subject: [PATCH] Fix runtests async --- Jakefile.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Jakefile.js b/Jakefile.js index a5cc7c26668..a78d6498e54 100644 --- a/Jakefile.js +++ b/Jakefile.js @@ -120,14 +120,18 @@ task(TaskNames.local, [ desc("Runs all the tests in parallel using the built run.js file. Optional arguments are: t[ests]=category1|category2|... d[ebug]=true."); task(TaskNames.runtestsParallel, [TaskNames.lib], function () { - tsbuild([ConfigFileFor.runjs, ConfigFileFor.lint]); - runConsoleTests("min", /*parallel*/ true); + tsbuild([ConfigFileFor.runjs, ConfigFileFor.lint], undefined, () => { + runConsoleTests("min", /*parallel*/ true); + // runConsoleTests calls complete for us + }); }, { async: true }); desc("Runs all the tests in parallel using the built run.js file. Optional arguments are: t[ests]=category1|category2|... d[ebug]=true."); task(TaskNames.runtests, [TaskNames.lib], function () { - tsbuild([ConfigFileFor.runjs, ConfigFileFor.lint]); - runConsoleTests('mocha-fivemat-progress-reporter', /*runInParallel*/ false);; + tsbuild([ConfigFileFor.runjs, ConfigFileFor.lint], undefined, () => { + runConsoleTests('mocha-fivemat-progress-reporter', /*runInParallel*/ false);; + // runConsoleTests calls complete for us + }); }, { async: true }); // Makes the test results the new baseline