Vscode-jest: Test status indicator issue

Created on 5 Dec 2016  路  8Comments  路  Source: jest-community/vscode-jest

When there's a failing test, the indicator turns red:

test js - first-agenda 2016-12-05 11-41-18

When I fix it, the comment disappears, but the indicator is still red:

test js - first-agenda 2016-12-05 11-41-38

Most helpful comment

@daldridge-cs I noticed the same thing and it has been reported here: #308

All 8 comments

oh yeah, that's weird, I've not seen this before - can you clone the repo and have a look with the debugger at the status of that it? Is there two wit the same name by any chance?

When you fix it, are the files you're modifying back to an unchanged state in git (unstaged/uncommited)?

I've seen one case if you fix and either commit, or the fix goes back to unchanged state. Jest is only acting on unstaged/uncommited files and as a result the editor doesn't currently update the decorators for files it thinks have no changes.

We made some improvements here, if you're still seeing the issue feel free to reopen.

Still seeing this with latest version

I've also seen variations of this as well. I'm going to try to find some time to track down the specific repro and hopefully fix. Basically there's some cases where the decorators aren't updating when they should.

Same problem here with vscode 1.16.1 and Jest extension 2.4.2 under Linux:

status_indicator_not_updating

I've seen this occur in the following scenario:

  • Start with a test that is passing
  • Edit the test and save, causing the watcher to detect the change and run the test. Test is correctly shown as failing.
  • Undo the edits to the failing test, reverting the file back to what it was (no difference in git working tree). Because the file matches SCM, the watcher doesn't re-run the test, so it fails to go back to green.

Likely related/same as https://github.com/jest-community/vscode-jest/issues/32?

@daldridge-cs I noticed the same thing and it has been reported here: #308

Was this page helpful?
0 / 5 - 0 ratings