Mirage undefined error (no route defined) when testing with Vue and Cypress
I finally found the solution with the help of Sam Selikoff on Mirage's discord channel. My problem was that my API is running on a different port than my application.
As Sam stated on discord (I rephrased it a little):
By default
this.passthrough()
only works for requests on the current domain. The code from Step 4 of the quickstart in Vue's main.js needs to saythis[method]("http://localhost:8090/*", async...
instead of
this[method]("/*", async...
I hope this will help someone in the future. It cost me a whole week.