-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(deps): update vitest v1 #185
Conversation
expect(wrapError(() => jsonExtra.stringify(original, null, 2))) | ||
.toMatchInlineSnapshot(` | ||
{ | ||
"ok": false, | ||
"value": [TypeError: Converting circular structure to JSON | ||
--> starting at object with constructor 'Array' | ||
--- index 0 closes the circle" | ||
--- index 0 closes the circle], | ||
} | ||
`); | ||
|
||
// TODO: multiline error message doesn't work with "toThrowErrorMatchingInlineSnapshot"? | ||
expect(() => jsonExtra.stringify(original, null, 2)).toThrow(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unstable snapshot with multiline error message?
It could be a regression from vitest-dev/vitest#4396
Indeed something bad is happening:
https://stackblitz.com/edit/vitest-dev-vitest-fmwjqc?file=test%2Fbasic.test.ts
I raised an issue on Vitest repo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in upstream vitest-dev/vitest#4663
Let's see how snapshots have changed