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.

Environment

  1. node -v: [v8.11.2]

  2. npm -v: [6.1.0]

  3. npm ls react-scripts (if you haven’t ejected): [jtest_test@1.0.0 /Users/jnorton1/Node.js/jtest_test └── (empty)]

  4. Operating system: [macOS 10.12.6]

Steps to Reproduce

Create a simple node project with npm -init and add jest as a dependency using yarn add --dev jest. Then create a simple source file and test file following the jest “getting started” instructions https://jestjs.io/docs/en/getting-started. Verify from command line that jest works by running yarn test in the project directory.

Expected Behavior

Open VS Code in the project directory and open test file. Expect to see solid green circle next to test indicating test has run.

Actual Behavior

See unfilled green circle indicating test has not been run. Hovering over circle gives this message: “Test has not run yet, due to Jest only running tests related to changes.”. Attempting to change code of called function does not run test. Attempting to force jest startup using Jest: Start Runner from command palette has no effect.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:6

github_iconTop GitHub Comments

2reactions
connectdotzcommented, Jul 17, 2018

the current vscode-jest has a compatibility issue with jest 23.x (jest/#6586). We hope to release PR #341 as soon as possible to address this issue… until then, you can try downgrading to jest 22.x.

1reaction
connectdotzcommented, Jul 24, 2018

vscode-jest 2.9.0 has shipped with jest 23.x support and more, which should address this issue. Feel free to reopen if otherwise.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting - Jest
Try running Jest with --no-watchman or set the watchman configuration option to false . Also see watchman troubleshooting. Tests are Extremely ...
Read more >
jest and npm not running test, just hangs - Stack Overflow
When I went to run the tests on all of the conditions, it started to have this issue. I have googled a lot,...
Read more >
Tests not running · Issue #2219 · facebook/jest - GitHub
Hi @zigomir, this seems like an issue with npm . I've installed deps with yarn and tests are running. Try removing node_modules and...
Read more >
Troubleshooting · Jest
Try running Jest with --no-watchman or set the watchman configuration option to false . Also see watchman troubleshooting. Tests are Extremely Slow on...
Read more >
Run jest for unit tests of modified files only | by SunCommander
In this article, you will learn how to run Jest for modified files only in a Pull Request. This can be done using...
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