Vitest · Matcher
toThrowErrorMatchingSnapshot
Checks the value thrown by a function against a stored snapshot. The test fails when the thrown value does not match the saved snapshot.
Last updated
Syntax
toThrowErrorMatchingSnapshot(hint?: string): voidIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
toMatchSnapshottoThrowErrorMatchingInlineSnapshottoMatchInlineSnapshotexpect