Jest Circus × test lifecycle hooks: can retried tests avoid duplicate external writes?
Goal Determine whether a test marked with jest.retryTimes can be retried without re‑executing side‑effects such as database inserts, file writes, or queue publishes that occur in beforeEach / afterEach hooks or the test body itself. Constraints: Jest’s current implementation re‑runs the full test function and its per‑test lifecycle on each attempt, so any no