mirror of https://github.com/zulip/zulip.git
test-js-with-puppeteer: Error on unhandled promise rejections.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
912c5a28f2
commit
42f4156b36
|
@ -61,7 +61,7 @@ def run_tests(files: Iterable[str], external_host: str) -> None:
|
||||||
current_test_num = test_number
|
current_test_num = test_number
|
||||||
for test_file in test_files[test_number:]:
|
for test_file in test_files[test_number:]:
|
||||||
test_name = os.path.basename(test_file)
|
test_name = os.path.basename(test_file)
|
||||||
cmd = ["node", test_file]
|
cmd = ["node", "--unhandled-rejections=strict", test_file]
|
||||||
print(
|
print(
|
||||||
"\n\n===================== {}\nRunning {}\n\n".format(
|
"\n\n===================== {}\nRunning {}\n\n".format(
|
||||||
test_name, " ".join(map(shlex.quote, cmd))
|
test_name, " ".join(map(shlex.quote, cmd))
|
||||||
|
|
Loading…
Reference in New Issue