Jest not running
See original GitHub issueEnvironment
-
node -v
: [v8.11.2] -
npm -v
: [6.1.0] -
npm ls react-scripts
(if you haven’t ejected): [jtest_test@1.0.0 /Users/jnorton1/Node.js/jtest_test └── (empty)] -
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:
- Created 5 years ago
- Reactions:2
- Comments:6
Top GitHub Comments
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.
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.