mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-17 01:20:12 +00:00
16 lines
450 B
TypeScript
16 lines
450 B
TypeScript
|
import "@testing-library/cypress/add-commands";
|
||
|
import "./commands";
|
||
|
|
||
|
Cypress.on("uncaught:exception", (err) => {
|
||
|
// Cypress and React Hydrating the document don't get along
|
||
|
// for some unknown reason. Hopefully we figure out why eventually
|
||
|
// so we can remove this.
|
||
|
if (
|
||
|
/hydrat/i.test(err.message) ||
|
||
|
/Minified React error #418/.test(err.message) ||
|
||
|
/Minified React error #423/.test(err.message)
|
||
|
) {
|
||
|
return false;
|
||
|
}
|
||
|
});
|