close

snapshotFormat

  • Type: PrettyFormatOptions
  • Default: undefined

Customize the snapshot format using options from the pretty-format.

rstest.config.ts
import { defineConfig } from '@rstest/core';

export default defineConfig({
  snapshotFormat: {
    printBasicPrototype: true,
  },
});