Skip to content

snapshotFormat

  • Type: PrettyFormatOptions

Format options for snapshot testing. These options are passed down to our fork of pretty-format. In addition to the pretty-format options we support printShadowRoot: boolean.

TIP

Beware that plugins field on this object will be ignored.

If you need to extend snapshot serializer via pretty-format plugins, please, use expect.addSnapshotSerializer API or snapshotSerializers option.

Released under the MIT License.