([context]: [TestContext?, unknown?], error: Error)
| 139 | const abortControllers = new WeakMap<TestContext, AbortController>() |
| 140 | |
| 141 | export function abortIfTimeout([context]: [TestContext?, unknown?], error: Error): void { |
| 142 | if (context) { |
| 143 | abortContextSignal(context, error) |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | export function abortContextSignal(context: TestContext, error: Error): void { |
| 148 | const abortController = abortControllers.get(context) |
no test coverage detected