Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/testing-library/user-event
/ setSystemTime
Method
setSystemTime
testenv/modules/fakeTimers.ts:99–102 ·
view source on GitHub ↗
(now?: number | Date)
Source
from the content-addressed store, hash-verified
97
}
98
99
setSystemTime(now?: number | Date): void {
100
this.assertFakeTimers()
101
this.clock!.setSystemTime(now)
102
}
103
104
getRealSystemTime(): number {
105
return
Date.now()
Callers
2
reset
Method · 0.80
fakeTimers.js
File · 0.80
Calls
1
assertFakeTimers
Method · 0.95
Tested by
no test coverage detected