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.

Extension thinks I'm using old jest

See original GitHub issue

I get this message on vscode startup: “This extension relies on Jest 20+ features, it will continue to work, but some features may not work correctly.”

But I am using jest 20, installed into my node_modules:

$ node_modules/.bin/jest -v
v20.0.4

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
TreTunacommented, Jan 31, 2018

@seanpoulter Found where it was checking the path to Jest and added a line (and subsequent test) to check for jest-cli as well. Opened a PR for this. #243

1reaction
robertmaincommented, Nov 22, 2017

Do you continue to see the warning about the old version of Jest @robertmain? I couldn’t reproduce the issue with your repo and the latest version of the extension. I didn’t not appear for me.

I actually uninstalled the extension when it first started happening because I couldn’t make it behave. I re-installed it when I saw your comment so I’d guess that fixed it 😃

Also in your console output, no tests were found running npm run unit because that testPathPattern test/unit/specs doesn’t work on Windows

Yeah, I’ve noticed that - I’ve taken to using npx jest --watch instead

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting - Jest
Use this guide to resolve issues with Jest. Tests are Failing and You Don't Know Why​. Try using the debugging support built into...
Read more >
jest unexpected token when importing css - Stack Overflow
The problem is that Jest is hitting these CSS imports and trying to parse them as if they were JavaScript. The "Unexpected token...
Read more >
React Testing Library Tutorial - Robin Wieruch
Learn how to use React Testing Library in this tutorial. You will learn how to test your React components step by step with...
Read more >
Integration Testing Browser Extensions with Jest - Medium
Today I am happy to report that I have found a way to perform integration testing on extensions and want to share it...
Read more >
React Components Testing with React Testing Library and Jest
It is super easy to use, provides an array of assertion methods (extended from Jest), user-events simulation and etc. create-react-app uses Jest as...
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