From 471c24dfcbee537756253c9b1ef5b29d2b7413b9 Mon Sep 17 00:00:00 2001 From: Tim Lai Date: Mon, 17 Aug 2020 13:58:57 -0700 Subject: [PATCH] fix(cypress): tests should fail on uncaught exception (#6308) * also remove broken file logging ref #6305 --- test/e2e-cypress/support/index.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/test/e2e-cypress/support/index.js b/test/e2e-cypress/support/index.js index 2b949c96..d5ef78fd 100644 --- a/test/e2e-cypress/support/index.js +++ b/test/e2e-cypress/support/index.js @@ -1,5 +1,3 @@ -import fs from "fs" - // *********************************************************** // This example support/index.js is processed and // loaded automatically before your test files. @@ -29,9 +27,6 @@ Cypress.on("window:before:load", win => { }) Cypress.on("uncaught:exception", (err, runnable) => { - console.log(err) console.log(JSON.stringify(err, null, 2)) - fs.writeFileSync(require("path").normalize(__dirname, "./error.log"), JSON.stringify(err, null, 2)) - - throw err + return true })