Issue
I want to run a rest, but the Tests
tab shows this error.
Could not find module in path: 'react-dom/client' relative to
'/node_modules/@testing-library/react/dist/@testing-library/react.esm.js'
I referred to these but they did NOT solve my problem.
- Reinstalling it in the
devDependencies
https://github.com/codesandbox/codesandbox-client/issues/2276 - Turning off my UBlock origin. https://github.com/enzymejs/enzyme/issues/529
- Trying different browsers
What should I do to successfully run this test?
Solution
This is a known issue. The answer says you need to use a Terminal to run this, which I think it means you need to run it locally.
https://github.com/codesandbox/codesandbox-client/issues/6599
Hey @eps1lon - Thank you for flagging this, the tests unfortunately don't work within Server sandboxes and we'll be removing them soon. To run the tests you'll need to use the terminal. Sorry for the trouble!
Answered By - Leonard
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.