Skip to content

Commit

Permalink
feat: add a link to the comment at the top of the snapshot file (#2867)
Browse files Browse the repository at this point in the history
  • Loading branch information
btea committed Feb 25, 2023
1 parent af8de36 commit 615e150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vitest/src/integrations/snapshot/port/utils.ts
Expand Up @@ -20,7 +20,7 @@ import { getSerializers } from './plugins'

export const SNAPSHOT_VERSION = '1'

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

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

0 comments on commit 615e150

Please sign in to comment.