Update tests to use toThrowErrorMatchingInlineSnapshot in unit tests #2707
Labels
Comments
|
Hi ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


We currently use
.not.toParse()which doesn't actually provide any information about what the failure mode is. Switching totoThrowErrorMatchingInlineSnapshot()shouldn't be too much work. It's probably something that could be done with a find-and-replace regex followed by runningjestwith the-uto update all of the snapshots.docs: https://jestjs.io/docs/en/expect#tothrowerrormatchinginlinesnapshotinlinesnapshot
The text was updated successfully, but these errors were encountered: