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 2.0 beta.9 toMatchInlineSnapshot not work as expect #5873

Closed
6 tasks done
cqh963852 opened this issue Jun 11, 2024 · 0 comments · Fixed by #5925
Closed
6 tasks done

vitest 2.0 beta.9 toMatchInlineSnapshot not work as expect #5873

cqh963852 opened this issue Jun 11, 2024 · 0 comments · Fixed by #5925
Labels
feat: browser Issues and PRs related to the browser runner p3-minor-bug An edge case that only affects very specific usage (priority)

Comments

@cqh963852
Copy link

Describe the bug

While using vitest 2.0 beta.9 with browser mode.

toMatchInlineSnapshot api not work as expect

Reproduction

https://stackblitz.com/edit/vitejs-vite-qtngcz?file=src%2Ftest.spec.tsx

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.20.3 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm
  npmPackages:
    @vitejs/plugin-react: ^4.3.1 => 4.3.1 
    @vitest/browser: ^2.0.0-beta.9 => 2.0.0-beta.9 
    vite: ^5.2.13 => 5.2.13 
    vitest: ^2.0.0-beta.9 => 2.0.0-beta.9

Used Package Manager

npm

Validations

@sheremet-va sheremet-va added feat: browser Issues and PRs related to the browser runner p3-minor-bug An edge case that only affects very specific usage (priority) and removed pending triage labels Jun 11, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jul 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feat: browser Issues and PRs related to the browser runner p3-minor-bug An edge case that only affects very specific usage (priority)
Projects
None yet
2 participants