View | Details | Raw Unified | Return to bug 40809
Collapse All | Expand All

(-)a/t/cypress/support/e2e.js (-1 / +1 lines)
Lines 38-43 function stringifyArgs(args) { Link Here
38
}
38
}
39
Cypress.on("window:before:load", win => {
39
Cypress.on("window:before:load", win => {
40
    win.console.warn = (...args) => {
40
    win.console.warn = (...args) => {
41
        console.log(args);
41
        const message = stringifyArgs(args);
42
        const message = stringifyArgs(args);
42
        throw new Error(`JS Warning detected: ${message}`);
43
        throw new Error(`JS Warning detected: ${message}`);
43
    };
44
    };
44
- 

Return to bug 40809