bun test
should drop-in replace vi.useFakeTimers
+ vi.setSystemTime
+ vi.useRealTimers
using vitest like it does with jest globals
#5548
Labels
Clear and concise description of the problem
Test file in
formatDate.test.ts
Run:
bun test formatDate
Error:
Suggested solution
There's already some magic that occurs within
bun test
when usingjest
methods via@jest/globals
but it'd be great if the same logic could be extended to includevitest
helper methods fromvi
so we don't need to change our test code in order to run withbun test
.Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: