React 18 has some problems and should be supported...
# component-testing
w
React 18 has some problems and should be supported soon (PR is up and will likely merge this week). It doesn’t seem like that specifically is your problem, though I’d expect you to still hit issues using React 18. JSX should work though so let’s at least get passed that so you’re ready when react 18 support does land. Based on the spec name in your describe block, I think you need to make sure the spec file has the .jsx extension, not just js. You can watch the PR here if you want to keep up with it: https://github.com/cypress-io/cypress/pull/22437
r
Thanks for the answer! Changing the extension to
.jsx
does work! 🤦 (Your answer saved me tons of hours looking deep into the vite configuration. I was worried Cypress was not setup properly, then looking at how it would interact with vite, with jest etc...) Thanks again! 👍