Skip to content

Commit

Permalink
Merge branch 'sync-docs' of https://github.com/vitest-dev/docs-cn int…
Browse files Browse the repository at this point in the history
…o sync-df2eb36b-1
  • Loading branch information
docschina-bot committed Oct 1, 2023
2 parents 4a28e0f + df2eb36 commit 71437f9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1377,6 +1377,12 @@ export default defineConfig({

测试快照的格式选项。这些选项被传递给 [`pretty-format`](https://www.npmjs.com/package/pretty-format)。

::: 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/expect#expect-addsnapshotserializer) API.
:::

### resolveSnapshotPath<NonProjectOption />

- **类型**: `(testPath: string, snapExtension: string) => string`
Expand Down

0 comments on commit 71437f9

Please sign in to comment.