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
Hello, I'm facing an issue when I tried to upgrade vitest version from 1.4.0 to 1.5.0. No code was changed, and now on v1.5.0 I'm getting TypeError: Cannot redefine property: error on some of my unit tests.
It works fine on v1.4.0
It dosn't work on v1.5.0, v1.5.1, v1.5.2
This happens because react-oidc-context is now imported as an ES module which doesn't support spying. You need to add it to server.deps.inline for Vitest to patch the module:
Describe the bug
Hello, I'm facing an issue when I tried to upgrade vitest version from
1.4.0
to1.5.0
. No code was changed, and now onv1.5.0
I'm gettingTypeError: Cannot redefine property:
error on some of my unit tests.It works fine on
v1.4.0
It dosn't work on
v1.5.0
,v1.5.1
,v1.5.2
Reproduction
https://stackblitz.com/edit/vitejs-vite-pq9gts?file=package.json,src%2Fapp%2FAuthGuard.tsx,src%2Fapp%2FAuthGuard.test.tsx
NOTE: if you downgrade vitest to
v.1.4.0
it should work fine.System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: