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
Using vi.fn in vi.mock not working anymore after upgrading to vitest 0.31.0. The function with vi.fn returns only undefined, ignoring the own implementation.
I have attached two Stackblitz examples with two test files, one with vi.fn', the other without. You will see that on v0.30.0 both variants work, after upgrading to v0.31.0 only the one without vi.fn` works.
Describe the bug
Using
vi.fn
invi.mock
not working anymore after upgrading to vitest 0.31.0. The function withvi.fn
returns only undefined, ignoring the own implementation.I have attached two Stackblitz examples with two test files, one with
vi.fn', the other without. You will see that on v0.30.0 both variants work, after upgrading to v0.31.0 only the one without
vi.fn` works.Reproduction
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: