sinonjs/fake-timers
Fake setTimeout and friends (collectively known as "timers"). Useful in your JavaScript tests. Extracted from Sinon.JS
JavaScriptBSD-3-Clause
Issues
- 0
Support performance.measure method
#493 opened by CreativeTechGuy - 8
TypeError while initializing in Node 19
#438 opened by jonathanschoeller - 5
`install({ toFake: ["setImmediate"] })` fails when `setImmediate` is not available in context (such as browser environment)
#490 opened by hi-ogawa - 5
Skypack bundle cannot be loaded in the browser
#489 opened by jgosmann - 12
[Feature]: Speed up all fake timers
#459 opened by Noriller - 2
- 21
- 2
Mock "timers/promise" module
#469 opened by fatso83 - 20
New missing APIs
#418 opened by benjamingr - 9
ClockDate class overwrite prototype of instance
#437 opened by Oustinger - 4
- 5
[Feature]: In Node, hijack perf_hooks.performance in addition to global.performance
#462 opened by kevinyou - 22
- 5
- 5
Event timeStamp not using fake-timers
#432 opened by mansona - 3
- 1
- 5
Leave global scope untouched
#472 opened by bojavou - 5
- 4
process.hrtime gives incorrect results
#471 opened by mrft - 6
Calls to `tick()` do not cause all setTimeouts to fire in specific scenarios.
#468 opened by abel-matsec - 17
NodeJS "timers" module is not mocked
#466 opened by swenzel-arc - 4
TypeError Since Node 19
#463 opened by charlieyeng - 8
- 0
`runToLastAsync` doing infinite loop when `now` is specified to setup clock
#450 opened by guillaumeduboc - 2
Test failing since Node 18.8.0
#441 opened by mroderick - 4
The `shouldAdvanceTime` option seems to cause Jest Test environment to clear during the test
#449 opened by erichosick - 32
Fake timers override mocks on performance object
#374 opened by Smrtnyk - 2
missing dependency?
#435 opened by xenoterracide - 3
ERR_PERFORMANCE_INVALID_TIMESTAMP triggered by tickAsync
#430 opened by Eomm - 7
Feature: clear all Timers when doing restore
#429 opened by sasaxing - 2
- 1
Missing hasRef for Node
#408 opened by fatso83 - 1
When `shouldAdvanceTime: true` and doing some synchronous work, time should still pass
#422 opened by rluvaton - 21
Breaks on Node 16
#394 opened by hexeberlin - 3
Cannot find name 'queueMicrotask'
#389 opened by minche-tsai - 8
- 1
Update docs for toFake
#409 opened by fatso83 - 12
- 6
TypeError: Cannot set property performance of [object Object] which has only a getter
#396 opened by alexgurr - 4
- 5
- 2
[Version 7.1.0] Typescript compilation error
#387 opened by lagonnebula - 8
clock.performance.now returns incorrect value within clock.setInterval callback
#388 opened by rrogowski - 3
- 0
Support util.promisify on installed functions
#347 opened by kevinoid - 23
fake-timers 7 doesn't seem to forward setTimeout args
#368 opened by ronag - 3
- 9
Type Defintions: Clock returned from install is missing uninstall property/function
#356 opened by peterjuras - 3
Type definitions introduced in v7 are too strict
#352 opened by peterjuras