Skip to content

Commit

Permalink
chore: comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Dec 28, 2023
1 parent 3413ae2 commit 4b480ef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/snapshots/test/fixtures/skip-test/repro.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})

0 comments on commit 4b480ef

Please sign in to comment.