You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git clone https://github.com/BlackGlory/jest-v28-issue-reproduction.git
cd jest-v28-issue-reproduction
yarn install
yarn jest
Expected behavior
It should import the module like Node.js:
node __tests__/index.js
Actual behavior
FAIL __tests__/index.js
● Test suite failed to run
Cannot find module 'extra-request/transformers/index.js' from '__tests__/index.js'
> 1 | require('extra-request/transformers/index.js')
| ^
2 |
at Resolver.resolveModule (node_modules/jest-resolve/build/resolver.js:317:11)
at Object.<anonymous> (__tests__/index.js:1:1)
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
Version
28.0.0-alpha.0
Steps to reproduce
git clone https://github.com/BlackGlory/jest-v28-issue-reproduction.git cd jest-v28-issue-reproduction yarn install yarn jest
Expected behavior
It should import the module like Node.js:
Actual behavior
Additional context
The related comment: #9771 (comment)
Environment
The text was updated successfully, but these errors were encountered: