.toThrowErrorMatchingInlineSnapshot()
This matcher is much like .toThrowErrorMatchingSnapshot
, except instead of writing the snapshot value to a .snap
file, it will be written into the source code automatically.
Check out the section on Inline Snapshots for more info.