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.

command 'io.orta.jest.coverage.toggle' not found

See original GitHub issue

Environment

  1. node -v: [9.5.0]
  2. npm -v: [yarn 1.3.2]

Using version 2.6.0 of the extension.

  1. Operating system: [linux]

Steps to Reproduce

Try to toggle code coverage overlay

Expected Behavior

Should show overlay

Actual Behavior

Gives error command 'io.orta.jest.coverage.toggle' not found

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:8
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
steven87vtcommented, Sep 16, 2021

i preformed the following: uninstalled jest, installed jest in WSL. toggling coverage and the setup extension beta option result in errors such as this:

image

since this project has no jest settings in settings.json i added a simple jest.rootPath to the parent which contains the jest.config.js file. the above errors continued to repete.

i then tried jest: start all runners and the hour glass icon popped up in the left hand extensions set. it reports 2/2 tests pass. toggle coverage started working.

1reaction
alexandar1000commented, Apr 14, 2022

For anyone coming to this, what helped me was to first run the Jest: Start all runners from the command palette and if needed reload VSCode.

Read more comments on GitHub >

github_iconTop Results From Across the Web

vscode jest extension doesn't work properly - Stack Overflow
I had been running tests using WSL2 with no issues (without the extension), but encountered "jest command not found" with the extension. After...
Read more >
vscode-jest - npm Package Health Analysis - Snyk
Looks like vscode-jest is missing a security policy. ... Run the Jest: Toggle Coverage Overlay command to show the overlay once; To configure...
Read more >
Configuring Jest for Visual Studio Code - Beyond Java
You have to run the command "Jest: Toggle Coverage": The half-moon symbol in the taskbar indicates whether the coverage is active or not....
Read more >
vscode-jest - Visual Studio Marketplace
Intermittent errors for (npm/yarn/node) command not found during test run or ... The coverage state is reflected in test tree toggle menu, ...
Read more >
Track project code coverage with Jest | egghead.io
Jest comes pre-packaged with the ability to track code coverage for the ... code coverage for the project, you'll notice that we are...
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