Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/vitest-dev/vitest
/ date-mock.test.ts
File
date-mock.test.ts
test/core/test/date-mock.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ afterEach, describe, expect, test, vi } from
'vitest'
2
3
describe(
'testing date mock functionality'
, () => {
4
afterEach(() => {
Callers
nothing calls this directly
Calls
6
afterEach
Function · 0.85
useRealTimers
Method · 0.80
setSystemTime
Method · 0.80
valueOf
Method · 0.80
getMockedSystemTime
Method · 0.80
test
Function · 0.70
Tested by
no test coverage detected