Skip to content

Commit 615e150

Browse files
authored
feat: add a link to the comment at the top of the snapshot file (#2867)
1 parent af8de36 commit 615e150

File tree

1 file changed

+1
-1
lines changed
  • packages/vitest/src/integrations/snapshot/port

1 file changed

+1
-1
lines changed

packages/vitest/src/integrations/snapshot/port/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { getSerializers } from './plugins'
2020

2121
export const SNAPSHOT_VERSION = '1'
2222

23-
const writeSnapshotVersion = () => `// Vitest Snapshot v${SNAPSHOT_VERSION}`
23+
const writeSnapshotVersion = () => `// Vitest Snapshot v${SNAPSHOT_VERSION}, https://vitest.dev/guide/snapshot.html`
2424

2525
export const testNameToKey = (testName: string, count: number): string =>
2626
`${testName} ${count}`

0 commit comments

Comments
 (0)