-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Closed
Labels
Description
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 jestExpected behavior
It should import the module like Node.js:
node __tests__/index.jsActual 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)
Additional context
The related comment: #9771 (comment)
Environment
Node: 16.13.1 - ~/.nvm/versions/node/v16.13.1/bin/node
Yarn: 1.22.17 - ~/.nvm/versions/node/v16.13.1/bin/yarn
npm: 8.1.2 - ~/.nvm/versions/node/v16.13.1/bin/npm
npmPackages:
jest: ^28.0.0-alpha.0 => 28.0.0-alpha.0