jest-community / vscode-jest

The optimal flow for Jest based testing in VS Code
MIT License
2.84k stars 294 forks source link

fix active editor files sometimes got attached to the wrong workspace folder #1108

Closed connectdotz closed 9 months ago

connectdotz commented 9 months ago

Fixed a bug that the active editor file might get attached to a wrong workspace folder (sometimes, deferred mode, race condition etc), even when the file is not under that workspace folder.

This could explain #1086, specifically in comment.

Also refactored the TestResultProvider.isTestFile to return a deterministic boolean value by parsing the content instead of returning a "maybe" value originally.


Resolve #1086

coveralls commented 9 months ago

Pull Request Test Coverage Report for Build 7777442173


Totals Coverage Status
Change from base Build 7516526780: 0.001%
Covered Lines: 3917
Relevant Lines: 3925

💛 - Coveralls