MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / _clearOutputsForTest

Function _clearOutputsForTest

source code/utils/task/diskOutput.ts:247–255  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

245 * Call this in afterEach BEFORE rmSync to avoid async-ENOENT-after-teardown.
246 */
247export async function _clearOutputsForTest(): Promise<void> {
248 for (const output of outputs.values()) {
249 output.cancel()
250 }
251 while (_pendingOps.size > 0) {
252 await Promise.allSettled([..._pendingOps])
253 }
254 outputs.clear()
255}
256
257function getOrCreateOutput(taskId: string): DiskTaskOutput {
258 let output = outputs.get(taskId)

Callers

nothing calls this directly

Calls 2

cancelMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected