diff --git a/test/screens/new.spec.js b/test/screens/new.spec.js index 71b3c53ac..43490226b 100644 --- a/test/screens/new.spec.js +++ b/test/screens/new.spec.js @@ -16,12 +16,13 @@ let driver captureAllScreens().catch((err) => { try { - verboseReportOnFailure() console.error(err) + verboseReportOnFailure() driver.quit() - } finally { - process.exit(1) + } catch (err) { + console.error(err) } + process.exit(1) }) async function captureAllScreens() {