()
| 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; |