Describe the bug
After a recent update to VS Code I noticed an issue with the editor icons/buttons not updating when a test goes from failing to passing in watch mode. It continues to show the test as failing, even though the test is passing. The failure line of code in the test that is underlined in red does goes away, but the icon buttons for the test name continue to show the red x. If I manually click the button to run the test again it correctly shows the green check icon for the passing test.
I've tried reinstalling the plugin but it didn't fix it.
To Reproduce
Steps to reproduce the behavior:
Enable the plugin for watch mode.
Have a passing test for some code under test.
Change the code being tested such that the test starts failing. The editor shows a red failure icon for the test.
Change the code being tested back so that the test passes. The editor continues to show the red failure icon even though the test is passing.
Expected behavior
The icon button changes back to show the test as passing, without having to manually run the test.
Screenshots
Environment (please complete the following information):
vscode-jest version: v6.2.4
node -v: v20.12.1
npm -v or yarn --version: npm 10.5.0
jest or react-scripts (if you haven’t ejected) version: jest 29.7.0
your vscode-jest settings:
jest.jestCommandLine?
jest.runMode? watch
jest.outputConfig? none
anything else that you think might be relevant? VS Code Version: 1.88.1 (Universal)
Operating system: MacOS 14.4.1 (23E224)
Prerequisite
are you able to run jest from the command line? yes
where do you run jest CLI from? root
how do you run your tests from the command line? nom run test
Additional context
Add any other context about the problem here.
The fastest (and the most fun) way to resolve the issue is to submit a pull request yourself. If you are interested, please check out the contribution guide, we look forward to seeing your PR...
Describe the bug After a recent update to VS Code I noticed an issue with the editor icons/buttons not updating when a test goes from failing to passing in watch mode. It continues to show the test as failing, even though the test is passing. The failure line of code in the test that is underlined in red does goes away, but the icon buttons for the test name continue to show the red x. If I manually click the button to run the test again it correctly shows the green check icon for the passing test.
I've tried reinstalling the plugin but it didn't fix it.
To Reproduce Steps to reproduce the behavior:
Expected behavior The icon button changes back to show the test as passing, without having to manually run the test.
Screenshots
Environment (please complete the following information):
node -v
: v20.12.1npm -v
oryarn --version
: npm 10.5.0Prerequisite
Additional context Add any other context about the problem here.
The fastest (and the most fun) way to resolve the issue is to submit a pull request yourself. If you are interested, please check out the contribution guide, we look forward to seeing your PR...