We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Having blank lines in test code causes the highlighted line with the failing test to show the wrong part of the code.
import { expect, test } from 'vitest'; test('example', () => { expect(false).toBeTruthy(); }); // a // b // c // d
gives this output:
(Note that the line number shown after the file name is correct, but the highlighted line is wrong.)
System: OS: Windows 10 10.0.19045 CPU: (20) x64 13th Gen Intel(R) Core(TM) i5-13600KF Memory: 22.04 GB / 31.83 GB Binaries: Node: 18.15.0 - C:\Program Files\nodejs\node.EXE npm: 9.5.0 - C:\Program Files\nodejs\npm.CMD pnpm: 8.2.0 - ~\AppData\Local\pnpm\pnpm.EXE Browsers: N/A npmPackages: vitest: ^0.34.1 => 0.34.1
npm
The text was updated successfully, but these errors were encountered:
Fixed by #3855, but not released yet
Sorry, something went wrong.
No branches or pull requests
Describe the bug
Having blank lines in test code causes the highlighted line with the failing test to show the wrong part of the code.
Reproduction
gives this output:
(Note that the line number shown after the file name is correct, but the highlighted line is wrong.)
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: