From 4b480ef0f0c73b257dcc3c442e3579a94dcb4d23 Mon Sep 17 00:00:00 2001 From: Hiroshi Ogawa Date: Thu, 28 Dec 2023 23:37:14 +0900 Subject: [PATCH] chore: comment --- test/snapshots/test/fixtures/skip-test/repro.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/snapshots/test/fixtures/skip-test/repro.test.ts b/test/snapshots/test/fixtures/skip-test/repro.test.ts index 0dc602fc2277..3d049da5697b 100644 --- a/test/snapshots/test/fixtures/skip-test/repro.test.ts +++ b/test/snapshots/test/fixtures/skip-test/repro.test.ts @@ -12,8 +12,9 @@ it.skipIf(ENABLE_SKIP)('top-level case', () => { expect('hi-2').toMatchSnapshot() }) -// requires at least one non-skipped test to trigger -// `SnapshotClient.startCurrentRun` on current file +// at least one non-skipped test is needed to reproduce a bug. +// without this, there will be no SnapshotClient.startCurrentRun, +// so the code to check skip/obsolete snapshot is not exercised. it('normal case', () => { expect(0).toBe(0) })