Not working if Jest is installed by pnpm
See original GitHub issueDo you want to request a feature or report a bug?
Bug
Steps to reprocedure:
- Clone this repo
- Install pnpm (
yarn global add pnpm
) - Run
pnpm install
to install dependencies - Run
pnpx jest
to run test - Delete
node_modules
- Run
yarn jest
What is the current behavior?
Step 4 fails but step 6 doesn’t.
TypeError: environment.setup is not a function
What is the expected behavior?
Step 4 doesn’t fail.
Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.
- Jest Config
- Node.js v9.4.0
- OS: Arch Linux
Related issue: https://github.com/pnpm/pnpm/issues/1007
UPDATE:
jest
doesn’t work but jest-cli
does.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:6
- Comments:7 (1 by maintainers)
Top Results From Across the Web
pnpm/pnpm - Gitter
Hello, I found weird error with how testing works when I have nyc and npm installed locally. (I need npm for programmatic api...
Read more >pnpm exec
If you have Jest as a dependency of your project, there is no need to install Jest globally, just run it with pnpm...
Read more >'command not found: jest' - Stack Overflow
I was able to execute the "jest" command after installing globally. If you don't have it installed globally you can use the "npx...
Read more >Getting Started - Jest
npm install --save-dev jest. Note: Jest documentation uses yarn commands, but npm will also work. You can compare yarn and npm commands in ......
Read more >WebStorm can't use eslint plugins installed by pnpm - YouTrack
Any progress on this? The problem is not just with eslint-plugin-jest, but with any eslint plugin, e.g. eslint-config-airbnb or eslint- ...
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 FreeTop 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
Top GitHub Comments
I think this issue can be closed?
https://github.com/pnpm/pnpm/issues/1007
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.