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

Function writePidFile

tests/daemon/utils.test.ts:311–315  ·  view source on GitHub ↗
(sessionId: string, contents: string)

Source from the content-addressed store, hash-verified

309 });
310
311 function writePidFile(sessionId: string, contents: string): void {
312 const pidFile = getPidFilePath(sessionId);
313 fs.mkdirSync(path.dirname(pidFile), {recursive: true});
314 fs.writeFileSync(pidFile, contents);
315 }
316
317 describe('getDaemonPid', () => {
318 it('returns null when no pid file exists', () => {

Callers 1

utils.test.tsFile · 0.85

Calls 1

getPidFilePathFunction · 0.85

Tested by

no test coverage detected