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
Under some specific settings unkown to me yet (dependencies, maybe?), inline snapshots do not work. To be more specific:
They are not written when there is only one toMatchInlineSnapshot assertion
They are written to the wrong assertion when there are more than one
This happened to my first project with vite/vitest and for a while assumed that they just weren't working but trying out a new project from scratch didn't have this issue. I believe this is somewhat of an edge case, and even though I narrowed my dependencies to the bare minimum in a StackBlitz project, I cannot seem to find the root cause.
Describe the bug
Under some specific settings unkown to me yet (dependencies, maybe?), inline snapshots do not work. To be more specific:
toMatchInlineSnapshot
assertionThis happened to my first project with vite/vitest and for a while assumed that they just weren't working but trying out a new project from scratch didn't have this issue. I believe this is somewhat of an edge case, and even though I narrowed my dependencies to the bare minimum in a StackBlitz project, I cannot seem to find the root cause.
Thanks!
Reproduction
npm run test
More variants:
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: