tubearchivist-frontend/cypress/support/e2e.ts
Sean Norwood 2e213376e3
Initial
2022-10-18 14:28:37 -05:00

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;
}
});