question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not working if Jest is installed by pnpm

See original GitHub issue

Do you want to request a feature or report a bug?

Bug

Steps to reprocedure:

  1. Clone this repo
  2. Install pnpm (yarn global add pnpm)
  3. Run pnpm install to install dependencies
  4. Run pnpx jest to run test
  5. Delete node_modules
  6. 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.

Related issue: https://github.com/pnpm/pnpm/issues/1007

UPDATE:

jest doesn’t work but jest-cli does.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:6
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
chapmanjacobdcommented, Sep 1, 2020

I think this issue can be closed?

https://github.com/pnpm/pnpm/issues/1007

0reactions
github-actions[bot]commented, May 11, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found