From 615e150b0f7d84e127cc9588036ad515a8350dd8 Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Sat, 25 Feb 2023 15:37:43 +0800 Subject: [PATCH] feat: add a link to the comment at the top of the snapshot file (#2867) --- packages/vitest/src/integrations/snapshot/port/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vitest/src/integrations/snapshot/port/utils.ts b/packages/vitest/src/integrations/snapshot/port/utils.ts index eb1b2ad2603e..b8359e79f7c0 100644 --- a/packages/vitest/src/integrations/snapshot/port/utils.ts +++ b/packages/vitest/src/integrations/snapshot/port/utils.ts @@ -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}`