MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / spyOnPrivate

Function spyOnPrivate

apps/cli/src/agent/__tests__/extension-host.test.ts:80–83  ·  view source on GitHub ↗

* Helper to spy on private methods * This uses a more permissive type to avoid TypeScript errors with vi.spyOn on private methods

(host: ExtensionHost, method: string)

Source from the content-addressed store, hash-verified

78 * This uses a more permissive type to avoid TypeScript errors with vi.spyOn on private methods
79 */
80function spyOnPrivate(host: ExtensionHost, method: string) {
81 // eslint-disable-next-line @typescript-eslint/no-explicit-any
82 return vi.spyOn(host as any, method)
83}
84
85describe("ExtensionHost", () => {
86 const initialRooCliRuntimeEnv = process.env.ROO_CLI_RUNTIME

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected