MCPcopy Index your code
hub / github.com/angular/angular / isPatchingFakeTimer

Function isPatchingFakeTimer

packages/zone.js/lib/jest/jest.ts:156–159  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

154 (Zone as any).patchJestObject = function patchJestObject(Timer: any, isModern = false) {
155 // check whether currently the test is inside fakeAsync()
156 function isPatchingFakeTimer() {
157 const fakeAsyncZoneSpec = Zone.current.get('FakeAsyncTestZoneSpec');
158 return !!fakeAsyncZoneSpec;
159 }
160
161 // check whether the current function is inside `test/it` or other methods
162 // such as `describe/beforeEach`

Callers 1

patchJestFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…