Skip to content

Commit

Permalink
docs: update snapshot comment header (#3062)
Browse files Browse the repository at this point in the history
  • Loading branch information
btea committed Mar 23, 2023
1 parent f6e0ede commit 8ac829e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/guide/snapshot.md
Expand Up @@ -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"'
```
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 8ac829e

Please sign in to comment.