test-js-with-puppeteer: Error on unhandled promise rejections.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2021-02-19 21:14:07 -08:00 committed by Tim Abbott
parent 912c5a28f2
commit 42f4156b36
1 changed files with 1 additions and 1 deletions

View File

@ -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))