Cannot find module '~__REDWOOD__USER_ROUTES_FOR_MOCK' from 'node_modules/@redwoodjs/testing/dist/MockProviders.js'
Closed this issue · 1 comments
Albert-Gao commented
Just a brand new project, everything works great, except for this little annoying issue, happens for all my tests
All the test files will have this error every 2 minutes or something, and if you click to open the file, the error is gone, then after a while, happens again
I am using "@redwoodjs/core": "0.35.1"
and vscode 1.58.2
The error message is:
● Test suite failed to run
Cannot find module '~__REDWOOD__USER_ROUTES_FOR_MOCK' from 'node_modules/@redwoodjs/testing/dist/MockProviders.js'
Require stack:
node_modules/@redwoodjs/testing/dist/MockProviders.js
node_modules/@redwoodjs/testing/dist/customRender.js
node_modules/@redwoodjs/testing/dist/index.js
web/src/components/ToDosCell/ToDosCell.test.tsx
at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:306:11)
at Object.<anonymous> (node_modules/@redwoodjs/testing/dist/MockProviders.js:32:5)
What am I missing here?
Albert-Gao commented
Moved to redwoodjs/redwood#3066