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

Function isInTestFunc

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

Source from the content-addressed store, hash-verified

161 // check whether the current function is inside `test/it` or other methods
162 // such as `describe/beforeEach`
163 function isInTestFunc() {
164 const proxyZoneSpec = Zone.current.get('ProxyZoneSpec');
165 return proxyZoneSpec && proxyZoneSpec.isTestFunc;
166 }
167
168 if (Timer[api.symbol('fakeTimers')]) {
169 return;

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…