Skip to content

Commit fc63eb9

Browse files
committed
Fix runtests async
1 parent eb2abf2 commit fc63eb9

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

Jakefile.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,18 @@ task(TaskNames.local, [
120120

121121
desc("Runs all the tests in parallel using the built run.js file. Optional arguments are: t[ests]=category1|category2|... d[ebug]=true.");
122122
task(TaskNames.runtestsParallel, [TaskNames.lib], function () {
123-
tsbuild([ConfigFileFor.runjs, ConfigFileFor.lint]);
124-
runConsoleTests("min", /*parallel*/ true);
123+
tsbuild([ConfigFileFor.runjs, ConfigFileFor.lint], undefined, () => {
124+
runConsoleTests("min", /*parallel*/ true);
125+
// runConsoleTests calls complete for us
126+
});
125127
}, { async: true });
126128

127129
desc("Runs all the tests in parallel using the built run.js file. Optional arguments are: t[ests]=category1|category2|... d[ebug]=true.");
128130
task(TaskNames.runtests, [TaskNames.lib], function () {
129-
tsbuild([ConfigFileFor.runjs, ConfigFileFor.lint]);
130-
runConsoleTests('mocha-fivemat-progress-reporter', /*runInParallel*/ false);;
131+
tsbuild([ConfigFileFor.runjs, ConfigFileFor.lint], undefined, () => {
132+
runConsoleTests('mocha-fivemat-progress-reporter', /*runInParallel*/ false);;
133+
// runConsoleTests calls complete for us
134+
});
131135
}, { async: true });
132136

133137
// Makes the test results the new baseline

0 commit comments

Comments
 (0)