Closed 11joselu closed 2 years ago
After runing all tests and clicking in 'Toggle coverage" we should be able to see the coverage report as a Gutter.
Not quite. To see the coverage report, you need to tell jest to generate the coverage info, therefore the right sequence will be
I tried your repo and it seems to work as expected.
Yes, I do and it seems to work too. I will close it. Thanks for your time :)
Environment
vscode-jest version
: v4.4.0node -v
: v16.1.0npm -v
oryarn --version
: 7.11.2npm ls jest
ornpm ls react-scripts
(if you haven’t ejected): jest@27.5.1Prerequisite
npm run test
ornode_modules/.bin/jest
) npm run test || CTRL + SHIFT + T (shortcut defined for vscode Jest: Run All testsSteps to Reproduce
You can reproduce using this repo: https://github.com/CodiumTeam/legacy-training-js/tree/master/tennis-refactoring-kata
Relevant Debug Info
Expected Behavior
After runing all tests and clicking in 'Toggle coverage" we should be able to see the coverage report as a Gutter.
Actual Behavior
Disabling autoRun, if you run all test then "Toggle coverage" the reports do not appears. You need to click in the coverage icon (bottom line) and then focus in code. After that, the coverage appears. Even if you remove some tests cases, run all tests + toggle coverage, did not refresh the report
Example
Sometimes I use shortcut to toggle coverage (window + space)
The fastest (and the most fun) way to resolve the issue is to submit a pull-request yourself. If you are interested, feel free to check out the contribution guide, we look forward to seeing your PR...