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
On an object (logged before assertion), we can see some properties defined correctly, however when testing via expects assertions it fails incorrectly expecting undefined
Describe the bug
On an object (logged before assertion), we can see some properties defined correctly, however when testing via expects assertions it fails incorrectly expecting
undefined
Returns Error:
It seems either having more than 1 hyphen, or a combination of hyphen and period seems to break it?
Workaround is explicitly check
toBeDefined
like so:Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-bdcj2g?file=test%2Fbasic.test.ts&initialPath=__vitest__
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: