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
Comparing objects containing getters returning objects throws an error
TypeError: Cannot set property getter of #<Object> which has only a getter
at file://<project>/node_modules/@vitest/utils/dist/error.js:138:19
at Array.forEach (<anonymous>)
at replaceAsymmetricMatcher (file://<project>/node_modules/@vitest/utils/dist/error.js:122:30)
at processError (file://<project>/node_modules/@vitest/utils/dist/error.js:85:50)
at failTask (file://<project>/node_modules/@vitest/runner/dist/index.js:843:19)
at runTest (file://<project>/node_modules/@vitest/runner/dist/index.js:783:9)
at runSuite (file://<project>/node_modules/@vitest/runner/dist/index.js:895:15)
at runFiles (file://<project>/node_modules/@vitest/runner/dist/index.js:944:5)
at startTests (file://<project>/node_modules/@vitest/runner/dist/index.js:953:3)
at file://<project>/node_modules/vitest/dist/chunks/runtime-runBaseTests.SKlFOhuq.js:114:7
because replaceAsymmetricMatcher is trying to assign a value to the getter property here
Describe the bug
Comparing objects containing getters returning objects throws an error
because
replaceAsymmetricMatcher
is trying to assign a value to the getter property herevitest/packages/utils/src/error.ts
Line 172 in 3ffcd2e
Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-9gejrs?file=test%2Findex.test.ts
System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: