Jest · Matcher
toMatchInlineSnapshot
toMatchInlineSnapshot compares a value with a snapshot stored in the test file. Jest can create the inline snapshot when the argument is omitted.
Last updated
Syntax
expect(value).toMatchInlineSnapshot(propertyMatchers?, inlineSnapshot)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
toMatchSnapshottoMatchObjectexpect.anyexpect.objectContainingexpect.stringMatching