|
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 |
- |
|
|