From 14b16eb3b59478f1ead4c72f1557091171be0cbb Mon Sep 17 00:00:00 2001 From: Devon Powell Date: Fri, 16 Feb 2024 14:02:21 -0500 Subject: [PATCH] fix: null exception when browser fails to launch (#128) --- src/reporters/web-test-runner.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/reporters/web-test-runner.js b/src/reporters/web-test-runner.js index 416baf1..bc139df 100644 --- a/src/reporters/web-test-runner.js +++ b/src/reporters/web-test-runner.js @@ -65,6 +65,10 @@ export function reporter(options = {}) { }; const collectSuite = (session, prefix, suite) => { + if (!suite) { + return; + } + collectTests(session, prefix, suite.tests); for (const childSuite of suite.suites) {