Implement vi.useFakeTimers
, vi.setSystemTime
, vi.useRealTimers
like vitest
#10275
Labels
vi.useFakeTimers
, vi.setSystemTime
, vi.useRealTimers
like vitest
#10275
What is the problem this feature would solve?
Test file in
formatDate.test.ts
Run:
bun test formatDate
Error:
What is the feature you are proposing to solve the problem?
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
.What alternatives have you considered?
@jest/globals
. However, jest is much slower than vitestbun:test
. Howeverbun:test
does not have first-class vscode extension integration like vitestThe text was updated successfully, but these errors were encountered: