nock/lib/request_overrider.js uses both setTimeout and timers.setTimeout. Should the project use one or the other for the sake of consistency?
Using setTimeout is nice because if a someone is mocking the clock, then nock will use a mocked clock as well. They can still do it, but have to do additional work to mock timers.
nock/lib/request_overrider.jsuses bothsetTimeoutandtimers.setTimeout. Should the project use one or the other for the sake of consistency?Using
setTimeoutis nice because if a someone is mocking the clock, then nock will use a mocked clock as well. They can still do it, but have to do additional work to mocktimers.