From 42f4156b366e9f1f714d14769c3e050cb54f0c40 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Fri, 19 Feb 2021 21:14:07 -0800 Subject: [PATCH] test-js-with-puppeteer: Error on unhandled promise rejections. Signed-off-by: Anders Kaseorg --- tools/test-js-with-puppeteer | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/test-js-with-puppeteer b/tools/test-js-with-puppeteer index 17e4ac153b..b6c5f177e4 100755 --- a/tools/test-js-with-puppeteer +++ b/tools/test-js-with-puppeteer @@ -61,7 +61,7 @@ def run_tests(files: Iterable[str], external_host: str) -> None: current_test_num = test_number for test_file in test_files[test_number:]: test_name = os.path.basename(test_file) - cmd = ["node", test_file] + cmd = ["node", "--unhandled-rejections=strict", test_file] print( "\n\n===================== {}\nRunning {}\n\n".format( test_name, " ".join(map(shlex.quote, cmd))