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
After a gentle and careful debugging session by @hi-ogawa, it appears that the root cause of the error is the fact that the addIssue and addIssues properties are enumerable. This behavior prevents instances from being compared effectively.
Description
Recent changes to
vitest
error comparison behavior have caused the following test to fail:I’ve already opened an issue on the Vitest repository vitest-dev/vitest#7315.
After a gentle and careful debugging session by @hi-ogawa, it appears that the root cause of the error is the fact that the
addIssue
andaddIssues
properties are enumerable. This behavior prevents instances from being compared effectively.Here’s a Stackblitz showcasing the debug findings: https://stackblitz.com/edit/vitest-dev-vitest-bruhvcfu?file=test%2Frepro.test.ts.
If aligning with the library's goals, I’d be so stoked to submit a PR to make the
addIssue
andaddIssues
properties non-enumerable. ✨Thanks in advance! 🙏
The text was updated successfully, but these errors were encountered: