You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NVIM v0.10.2
Build type: Release
LuaJIT 2.1.1727870382
Run "nvim -V1 -v"for more info
Describe the bug
This is using the Jest runner. I'm unsure if this is a Jest runner bug or a neotest bug. Willing to migrate if needed.
The tests will run fine, and report failures. The failures however are on the wrong test.
In the screenshots below, you can see that the first test passes, but has the expect errors reported on it that needed to be reported to the test below. This reports the same in the qf window as well. On top of that, the test with the actual failures does fail, but does not get any reports back for the expects, as they're placed in the first test.
If you read the errors reported back, you'll see they're for the wrong expects (one is for length, and the other is for a snapshot).
In this screenshot, I changed the assertion on line 137 to read toHaveLength(4) instead of the correct length of 3, and that error gets reported on line 103.
To Reproduce
Please provide a minimal init.lua to reproduce which can be run as the following:
nvim --clean -u minimal.lua
You can edit the following example file to include your adapters and other required setup.
NeoVim Version
Describe the bug
This is using the Jest runner. I'm unsure if this is a Jest runner bug or a neotest bug. Willing to migrate if needed.
The tests will run fine, and report failures. The failures however are on the wrong test.
In the screenshots below, you can see that the first test passes, but has the
expect
errors reported on it that needed to be reported to the test below. This reports the same in the qf window as well. On top of that, the test with the actual failures does fail, but does not get any reports back for the expects, as they're placed in the first test.If you read the errors reported back, you'll see they're for the wrong expects (one is for length, and the other is for a snapshot).
In this screenshot, I changed the assertion on line 137 to read
toHaveLength(4)
instead of the correct length of3
, and that error gets reported on line 103.To Reproduce
Please provide a minimal
init.lua
to reproduce which can be run as the following:You can edit the following example file to include your adapters and other required setup.
Steps to reproduce the behavior:
Expected behavior
Test failures get reported to the correct lines
Logs
neotest.log
Additional context
N/A
The text was updated successfully, but these errors were encountered: