Skip to content

Commit 13c214a

Browse files
hanslmgechev
authored andcommitted
build: add timeout argument to test script
1 parent b3857b4 commit 13c214a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/test.ts

+4
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,10 @@ export default function (args: ParsedArgs, logger: logging.Logger) {
176176
jasmine.DEFAULT_TIMEOUT_INTERVAL = 150000;
177177
}
178178

179+
if (args.timeout && Number.parseInt(args.timeout) > 0) {
180+
jasmine.DEFAULT_TIMEOUT_INTERVAL = Number.parseInt(args.timeout);
181+
}
182+
179183
// Run the tests.
180184
const allTests =
181185
glob.sync(regex)

0 commit comments

Comments
 (0)