ray/dashboard/tests/cypress/support/e2e.js

7 lines
239 B
JavaScript

Cypress.on(`window:before:load`, win => {
cy.stub( win.console, `error`, msg => {
// Abort the test on any error in console,
// this is a hack to show full stack trace.
throw new Error( msg.stack );
});
});