You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature]: Extend timer mocks to cover node:timers/promises #16392
Jest's timer mocks (API docs) cover a large number of timer-related functions, but they don't cover Node.js's newer Timers Promises API. It would be great if those could be included as well.
Currently, some code under test can do what seems like a harmless refactor from global setTimeout to node:timers/promisessetTimeout and suddenly find itself no longer covered by Jest's timer mocks. And the source of the shortfall is much less obvious than when the tests are calling jest.mock or jest.spyOn themselves.
Activity
github-actions commentedon Sep 20, 2026
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.
joshkel commentedon Sep 21, 2026
Not stale.
github-actions commentedon Oct 21, 2026
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.
joshkel commentedon Oct 21, 2026
Not stale.