remix-demo

react router (remix) demo

git clone https://9o.is/git/remix-demo.git

e2e.ts

(450B)


      1 import "@testing-library/cypress/add-commands";
      2 import "./commands";
      3 
      4 Cypress.on("uncaught:exception", (err) => {
      5   // Cypress and React Hydrating the document don't get along
      6   // for some unknown reason. Hopefully we figure out why eventually
      7   // so we can remove this.
      8   if (
      9     /hydrat/i.test(err.message) ||
     10     /Minified React error #418/.test(err.message) ||
     11     /Minified React error #423/.test(err.message)
     12   ) {
     13     return false;
     14   }
     15 });