Skip to content
masterclass Buddy

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.

Subscribe
  • toMatchSnapshot
  • toMatchObject
  • expect.any
  • expect.objectContaining
  • expect.stringMatching

Source: Expect · Jest. Checked 2026-11-03.