tubearchivist-frontend/cypress/support/e2e.ts

16 lines
450 B
TypeScript
Raw Permalink Normal View History

2022-10-18 19:28:37 +00:00
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;
}
});