Files
bun.sh/test/regression/issue
pfg a83d57b1de feat: implement vi.useFakeTimers(), vi.useRealTimers(), and vi.setSystemTime()
Adds support for Vitest timer mocking methods to control Date behavior in tests:
- vi.useFakeTimers() - Freezes Date to current time when called
- vi.useRealTimers() - Restores real Date behavior
- vi.setSystemTime(date) - Sets mocked Date to specific time (accepts number/Date/string)

When fake timers are enabled, Date.now() and new Date() return the mocked time value.
The implementation uses globalObject->overridenDateNow to control the Date behavior.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-14 15:40:48 -07:00
..
2025-08-06 06:44:46 -07:00
2025-01-28 17:23:57 -08:00
2025-06-03 13:23:12 -07:00
2025-06-03 23:41:37 -07:00
2025-01-17 22:08:07 -08:00
2024-06-14 01:50:36 -07:00
2025-03-03 21:38:05 -08:00
2025-05-26 21:18:22 -07:00
2025-07-03 01:06:22 -07:00
2025-07-23 22:31:42 -07:00
2025-07-20 23:02:10 -07:00