From 8ac829e266d754fc414ddaf031b472d38bf53667 Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Thu, 23 Mar 2023 17:10:22 +0800 Subject: [PATCH] docs: update snapshot comment header (#3062) --- docs/guide/snapshot.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/guide/snapshot.md b/docs/guide/snapshot.md index 2af049497baa..06618efcc159 100644 --- a/docs/guide/snapshot.md +++ b/docs/guide/snapshot.md @@ -26,7 +26,7 @@ it('toUpperCase', () => { The first time this test is run, Vitest creates a snapshot file that looks like this: ```js -// Vitest Snapshot v1 +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports['toUpperCase 1'] = '"FOOBAR"' ``` @@ -147,8 +147,8 @@ Vitest provides an almost compatible Snapshot feature with [Jest's](https://jest #### 1. Comment header in the snapshot file is different ```diff -- // Jest Snapshot v1 -+ // Vitest Snapshot v1 +- // Jest Snapshot v1, https://goo.gl/fbAQLP ++ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html ``` This does not really affect the functionality but might affect your commit diff when migrating from Jest.