MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / __resetToolRegistryForTests

Function __resetToolRegistryForTests

src/utils/tool-registry.ts:490–502  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

488}
489
490export function __resetToolRegistryForTests(): void {
491 for (const tool of registryState.tools.values()) {
492 try {
493 tool.remove();
494 } catch {
495 // Safe to ignore: server may already be closed during cleanup
496 }
497 }
498 registryState.tools.clear();
499 registryState.enabledWorkflows.clear();
500 registryState.currentContext = null;
501 registryState.catalog = null;
502}

Callers 3

createMcpTestHarnessFunction · 0.90
cleanupFunction · 0.90

Calls 1

clearMethod · 0.65

Tested by

no test coverage detected