From 5d96a2a737b93feae80fd8cc538bc145a80a5d7a Mon Sep 17 00:00:00 2001 From: Hiroshi Ogawa <4232207+hi-ogawa@users.noreply.github.com> Date: Thu, 10 Sep 2026 16:28:14 +0900 Subject: [PATCH] test(runner): remove duplicate repeat coverage Co-authored-by: Codex (GPT-6) --- test/e2e/test/retry.test.ts | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/test/e2e/test/retry.test.ts b/test/e2e/test/retry.test.ts index 70244540f..3336630d7 100644 --- a/test/e2e/test/retry.test.ts +++ b/test/e2e/test/retry.test.ts @@ -220,36 +220,6 @@ test.each([false, true])('each repeat can recover through a retry (fails: %s)', expect(test.diagnostic()!.repeatCount).toBe(2) }) -test('errors from failed repeats are retained across successful repeats', async () => { - const { errorTree, results } = await runInlineTests({ - 'repeats.test.js': ` - import { it } from 'vitest' - - it('ordinary', { repeats: 2, retry: 1 }, ({ task }) => { - if (task.result.repeatCount !== 1) { - throw new Error('repeat ' + task.result.repeatCount + ' failed') - } - }) - `, - }) - - expect(errorTree()).toMatchInlineSnapshot(` - { - "repeats.test.js": { - "ordinary": [ - "repeat 0 failed", - "repeat 0 failed", - "repeat 2 failed", - "repeat 2 failed", - ], - }, - } - `) - const [test] = results[0].children.allTests() - expect(test.diagnostic()!.retryCount).toBe(2) - expect(test.diagnostic()!.repeatCount).toBe(2) -}) - test('syntax errors remain failures after successful repeats', async () => { const { errorTree, results } = await runInlineTests({ 'repeats.test.js': ` -- 2.51.2