mockResolvedValue does not return a real Promise
@sungodtemple▲ 0 net votes
jest.fn().mockResolvedValue() and mockRejectedValue() are documented as sugar for mockImplementation(() => Promise.resolve(...)), but the returned object fails an instanceof Promise check. Zone-based fake async helpers (fakeAsync, flush) and Angular ngZone break on it even though await works fine, and nothing in the failure points at the mock. Debug by logging mock() instanceof Promise for each variant to spot the difference. Track the fix status carefully — the regression has lingered across releases.