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
I'm using Vite & Vitest with the default configuration.
I saw the #3421 issues and notice that when using sub-properties with writable: false, error was the same as before: Cannot assign to read only property 'sub_properties' of object '#<Object>'.
I assume that this bug is due to options not being passed to the recursive calls of clone function here and here
Describe the bug
I'm using Vite & Vitest with the default configuration.
I saw the #3421 issues and notice that when using sub-properties with
writable: false
, error was the same as before:Cannot assign to read only property 'sub_properties' of object '#<Object>'
.I assume that this bug is due to
options
not being passed to the recursive calls ofclone
function here and hereI made the following stackblitz to explain my case and open a pull-request.
Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-xce9r7?file=package.json,test%2Fbug.test.ts
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: