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

Function setRuntimeInstanceForTests

src/utils/runtime-instance.ts:49–62  ·  view source on GitHub ↗
(
  instance:
    | (Omit<RuntimeInstance, 'workspaceKey'> & Partial<Pick<RuntimeInstance, 'workspaceKey'>>)
    | null,
)

Source from the content-addressed store, hash-verified

47}
48
49export function setRuntimeInstanceForTests(
50 instance:
51 | (Omit<RuntimeInstance, 'workspaceKey'> & Partial<Pick<RuntimeInstance, 'workspaceKey'>>)
52 | null,
53): void {
54 runtimeInstance = instance
55 ? {
56 instanceId: instance.instanceId,
57 pid: instance.pid,
58 workspaceKey: instance.workspaceKey ?? configuredWorkspaceKey ?? DEFAULT_WORKSPACE_KEY,
59 }
60 : null;
61 configuredWorkspaceKey = runtimeInstance?.workspaceKey ?? null;
62}

Calls

no outgoing calls

Tested by

no test coverage detected