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
Describe the bug
When using spyOn in sessionStorage (vitest), the following message is displayed: 'defineProperty' on proxy: trap returned falsish for property 'getItem'
Hey,
I'm trying to add a spy on localstorage.setItem and I'm facing the same issue TypeError: 'deleteProperty' on proxy: trap returned falsish for property 'setItem'.
Describe the bug
When using
spyOn
in sessionStorage (vitest), the following message is displayed:'defineProperty' on proxy: trap returned falsish for property 'getItem'
To Reproduce
Sample code
The text was updated successfully, but these errors were encountered: