MCPcopy
hub / github.com/callstack/agent-device / connectWithNoLogin

Function connectWithNoLogin

src/__tests__/cloud-connect-auth.test.ts:84–101  ·  view source on GitHub ↗
(stateDir: string)

Source from the content-addressed store, hash-verified

82}
83
84async function connectWithNoLogin(stateDir: string): Promise<void> {
85 const stdoutWrite = vi.spyOn(process.stdout, 'write').mockImplementation(() => true);
86 try {
87 await connectCommand({
88 positionals: [],
89 flags: {
90 json: true,
91 help: false,
92 version: false,
93 noLogin: true,
94 stateDir,
95 },
96 client: {} as AgentDeviceClient,
97 });
98 } finally {
99 stdoutWrite.mockRestore();
100 }
101}

Callers 1

Calls 1

connectCommandFunction · 0.90

Tested by

no test coverage detected