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

Function createCliSession

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

Source from the content-addressed store, hash-verified

574 * test. Each test gets its own session, so tests can run concurrently.
575 */
576export function createCliSession(t: TestContext): string {
577 const sessionId = crypto.randomUUID();
578 t.after(async () => {
579 await stopDaemonForCleanup(sessionId);
580 });
581 return sessionId;
582}
583
584export async function assertDaemonIsRunning(sessionId?: string): Promise<void> {
585 const result = await runCli(['status'], sessionId);

Calls 1

stopDaemonForCleanupFunction · 0.85

Tested by

no test coverage detected