MCPcopy
hub / github.com/callstack/react-native-testing-library / jestFakeTimersAreEnabled

Function jestFakeTimersAreEnabled

src/helpers/timers.ts:64–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62}
63
64const jestFakeTimersAreEnabled = (): boolean => Boolean(getJestFakeTimersType());
65
66// we only run our tests in node, and setImmediate is supported in node.
67function setImmediatePolyfill(fn: () => void) {

Callers 4

waitForInternalFunction · 0.90
checkRealTimersCallbackFunction · 0.90
timers.test.tsFile · 0.90

Calls 1

getJestFakeTimersTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…