Error: Cannot find module '@jest/test-sequencer'
See original GitHub issue🐛 Bug Report
Getting this fatal error when running Jest with pnpm:
Error: Cannot find module '@jest/test-sequencer'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
    at Function.Module._load (internal/modules/cjs/loader.js:507:25)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at /Users/spencerelliott/Dev/path/to/node_modules/.registry.npmjs.org/@jest/core/24.7.0/node_modules/@jest/core/build/runJest.js:290:9
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (/Users/spencerelliott/Dev/path/to/node_modules/.registry.npmjs.org/@jest/core/24.7.0/node_modules/@jest/core/build/runJest.js:148:24)
    at _next (/Users/spencerelliott/Dev/path/to/node_modules/.registry.npmjs.org/@jest/core/24.7.0/node_modules/@jest/core/build/runJest.js:168:9)
    at /Users/spencerelliott/Dev/path/to/node_modules/.registry.npmjs.org/@jest/core/24.7.0/node_modules/@jest/core/build/runJest.js:173:7
    at new Promise (<anonymous>)
To Reproduce
Steps to reproduce the behavior:
npm install --global pnpm@2.25.6
pnpm install jest
./node_modules/.bin/jest
Expected behavior
No fatal error.
Run npx envinfo --preset jest
Paste the results here:
  System:
    OS: macOS 10.14.3
    CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
  Binaries:
    Node: 10.15.0 - /var/folders/ms/t3l222rn1v3dkvvnytj4vfkw0000gn/T/fnm-shell-1068309/bin/node
    Yarn: 1.13.0 - /usr/local/bin/yarn
    npm: 6.8.0 - /var/folders/ms/t3l222rn1v3dkvvnytj4vfkw0000gn/T/fnm-shell-1068309/bin/npm
  npmPackages:
    jest: ^24.7.0 => 24.7.0
Issue Analytics
- State:
 - Created 4 years ago
 - Comments:6 (2 by maintainers)
 
Top Results From Across the Web
Cannot find module jest-sequencer-@jest/test-sequencer
My suspicion is that the value for --env is what is causing the problem. For reference, I my config files: jest.config.js module.exports =...
Read more >@jest/test-sequencer - npm
Start using @jest/test-sequencer in your project by running `npm i @jest/test-sequencer`. ... This package does not have a README.
Read more >Configuring Jest
The function should either return a path to the module that should be resolved or throw an error if the module can't be...
Read more >@jest/test-sequencer | Yarn - Package Manager
Refactored TestRunner into SearchSource and improved the "no tests found" message. Added jest.isMockFunction(jest.fn()) to test for mock functions. Improved ...
Read more >Jest: Cannot find module error? : r/reactjs - Reddit
The app is working perfectly fine but Jest is giving me an error when I import the component. The error I'm getting is:...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

^ released
It’s a dep of
jest-config, so #8267 will fix it as we’ll pass a full, resolved path the@jest/core🙂