MCPcopy Create free account
hub / github.com/ChromeDevTools/chrome-devtools-mcp / createCliSession

Function createCliSession

tests/utils.ts:519–525  ·  view source on GitHub ↗
(t: TestContext)

Source from the content-addressed store, hash-verified

517 * test. Each test gets its own session, so tests can run concurrently.
518 */
519export function createCliSession(t: TestContext): string {
520 const sessionId = crypto.randomUUID();
521 t.after(async () => {
522 await stopDaemonForCleanup(sessionId);
523 });
524 return sessionId;
525}
526
527export async function assertDaemonIsRunning(sessionId?: string): Promise<void> {
528 const result = await runCli(['status'], sessionId);

Calls 1

stopDaemonForCleanupFunction · 0.85

Tested by

no test coverage detected