Closed Pineappletooth closed 6 months ago
@haydenmeade done, thanks.
this is very relevant and necessary. How are things progressing on this issue?
in my opinion, the second point does not work
@bad4iz Thanks for the report, i updated my dependencies and it seems that the second point was fixed in another place (probably in the neotest repo) and now the original test id respects the drive case, so the windows specific hack is no longer needed.
I removed it and everything seems to be working as expected again. Could you try and confirm please?
yes it works. thanks
@haydenmeade this is very relevant and necessary. How are things progressing on this issue?
This plugin in windows has 2 issues:
1) Jest only accepts paths with forward slash but the plugin sends it backwards as reported in #42
2) After solving the first issue i noticed that neotest doesn't update the sign for each test making every test appear with an X even if the test passed. This is caused due to the test having an id likeIt seems that neotest now respects the case of the test id so this is no longer an issue.c:\\path\file::test_name
and the Jest output reports the path likeC:\\path\file::test_name
(notice the capital drive)This PR attemps to solve both issues.
First issue was solved using
vim.fs.normalize
as recommended in https://github.com/nvim-neotest/neotest-jest/pull/44#issuecomment-1420417168.Second issue was solved adding a windows only validation that changes the case of the drive.Tested in windows everything works as expected. Should not cause any issue in other platforms.
Fixes #42 Supersedes #44