Skip to content
New issue

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

vitest ui - expected reversed with actual #2458

Closed
6 tasks done
srflp opened this issue Dec 7, 2022 · 0 comments · Fixed by #2460
Closed
6 tasks done

vitest ui - expected reversed with actual #2458

srflp opened this issue Dec 7, 2022 · 0 comments · Fixed by #2460

Comments

@srflp
Copy link

srflp commented Dec 7, 2022

Describe the bug

For the code:

expect(500).toBe(200);

vitest returns in the console values in the correct order

  - Expected   "200"
  + Received   "500"

but vitest --ui returns in the browser values that are incorrectly inverted

  - Expected   500
  + Received   200

Reproduction

the issue is obvious so I do not add the reproduction

System Info

System:
    OS: macOS 13.0.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 151.91 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 18.12.1 - ~/.nvm/versions/node/v18.12.1/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v18.12.1/bin/yarn
    npm: 8.19.2 - ~/.nvm/versions/node/v18.12.1/bin/npm
  Browsers:
    Chrome: 108.0.5359.98
    Edge: 108.0.1462.41
    Firefox: 107.0.1
    Safari: 16.1
  npmPackages:
    vitest: ^0.25.5 => 0.25.5

Used Package Manager

pnpm

Validations

@github-actions github-actions bot locked and limited conversation to collaborators Jun 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant