Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/date-fns/date-fns
/ fakeNow
Function
fakeNow
pkgs/core/src/_lib/test/index.ts:42–44 ·
view source on GitHub ↗
(date: number | Date)
Source
from the content-addressed store, hash-verified
40
41
export
function
fakeDate(date: number | Date) {
42
function
fakeNow(date: number | Date) {
43
vi.setSystemTime(date);
44
}
45
46
beforeEach(() => {
47
vi.useFakeTimers({ now: date });
Callers
15
test.ts
File · 0.50
test.ts
File · 0.50
test.ts
File · 0.50
test.ts
File · 0.50
test.ts
File · 0.50
test.ts
File · 0.50
test.ts
File · 0.50
test.ts
File · 0.50
test.ts
File · 0.50
test.ts
File · 0.50
test.ts
File · 0.50
test.ts
File · 0.50
Calls
no outgoing calls
Tested by
no test coverage detected