Skip to content

Commit e397bb5

Browse files
hanslfilipesilva
authored andcommitted
ci: test script is async
1 parent 13696b3 commit e397bb5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,5 +204,8 @@ export default function (args: ParsedArgs, logger: logging.Logger) {
204204
logger.info(`Found ${tests.length} spec files, out of ${allTests.length}.`);
205205
}
206206

207-
runner.execute(tests);
207+
return new Promise(resolve => {
208+
runner.onComplete((passed: boolean) => resolve(passed ? 0 : 1));
209+
runner.execute(tests);
210+
});
208211
}

0 commit comments

Comments
 (0)