Created
March 19, 2020 01:18
-
-
Save ryanjyost/5594c41b2d06b33fb71bb42d02aef6ac to your computer and use it in GitHub Desktop.
support/index
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Cypress.on("window:before:load", win => { | |
cy.stub(win.console, "error", msg => { | |
cy.now("task", "error", msg); | |
throw new Error(msg); // all we needed to add! | |
}); | |
cy.stub(win.console, "warn", msg => { | |
cy.now("task", "warn", msg); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment