> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# snapshotFormat

- **Type:** `PrettyFormatOptions`
- **Default:** `{ printShadowRoot: false }`

Customize the snapshot format using options from the [pretty-format](https://www.npmjs.com/package/pretty-format).

Rstest omits shadow roots from snapshots by default. Set `printShadowRoot` to `true` to include them.

```ts title="rstest.config.ts"
import { defineConfig } from '@rstest/core';

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