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
For the following test, the actual value is printed as the - Expected green text, when it should be printed as the + Received red text.
- Expected
+ Received
import { expect, test } from "vitest"; const getText = () => "actual text"; test("demo", () => { const expected = "expected text"; const actual = getText(); expect(actual).toBe(expected); });
After some debugging, it appear to have been broken in v0.32.1 with the new text diff that is used, likely introduced in #3582
v0.32.1
Here's the project with the above test in it. repro.zip
System: OS: macOS 13.4.1 CPU: (8) arm64 Apple M1 Pro Memory: 258.06 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 16.17.0 - ~/.asdf/installs/nodejs/lts/bin/node Yarn: 1.22.19 - ~/.asdf/installs/nodejs/lts/.npm/bin/yarn npm: 8.15.0 - ~/.asdf/plugins/nodejs/shims/npm pnpm: 7.15.0 - ~/.asdf/installs/nodejs/lts/.npm/bin/pnpm Browsers: Chrome: 114.0.5735.198 Safari: 16.5.1 npmPackages: vitest: ^0.32.2 => 0.32.2
pnpm
The text was updated successfully, but these errors were encountered:
It's fixed, but the fix is not released yet
Sorry, something went wrong.
No branches or pull requests
Describe the bug
For the following test, the actual value is printed as the
- Expected
green text, when it should be printed as the+ Received
red text.After some debugging, it appear to have been broken in
v0.32.1
with the new text diff that is used, likely introduced in #3582Version differences
Reproduction
Here's the project with the above test in it. repro.zip
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: