Eternal "tests are loading" plus console erros from component emitter #17686
Replies: 1 comment 3 replies
-
Usually Storybook imports stuff like Mock Service Worker which can be problematic with Cypress. I suggest just importing a it('works', () => {
expect(true).to.be.true
}) Once that's compiling, you want to start and then building up to more and more dependencies to isolate the module that's failing. My guess is that something inside of your storybook Webpack configuration isn't playing nicely with Cypress... but I'm not sure what that would be. Here's our Storybook + Component testing blog post. Can you send me a reproduction repo? I want to make an issue out of this because the error handling is terrible and we need to keep track of it -- regardless of if there are other underlying issues, the errors need to be better. |
Beta Was this translation helpful? Give feedback.
-
Hi. I started following the guide to set up component testing in a React library, and all I get is an eternal "Your tests are loading…" in the test runner. In the browser console I see this:
Here's my
cypress.json
:and my
cypress/plugins/index.js
:Here are the versions of the newly added dependencies:
Any ideas about what's wrong with my setup?
Beta Was this translation helpful? Give feedback.
All reactions