MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / _clearOutputsForTest

Function _clearOutputsForTest

src/utils/task/diskOutput.ts:245–253  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

cancelMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected