diff options
development - screens - fix screenshot on failure
Diffstat (limited to 'test/screens')
-rw-r--r-- | test/screens/new.spec.js | 7 |
1 files changed, 4 insertions, 3 deletions
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() { |