MCPcopy
hub / github.com/inkeep/open-knowledge / fakeLock

Function fakeLock

packages/cli/src/commands/ui.test.ts:993–1001  ·  view source on GitHub ↗
(port: number)

Source from the content-addressed store, hash-verified

991
992describe('resolveUiLockCollision', () => {
993 function fakeLock(port: number): UiLockMetadata {
994 return {
995 pid: process.pid,
996 hostname: 'localhost',
997 port,
998 startedAt: new Date().toISOString(),
999 worktreeRoot: tmpDir,
1000 };
1001 }
1002
1003 test('same port as holder → already-running', async () => {
1004 const result = await resolveUiLockCollision({

Callers 2

ui.test.tsFile · 0.85
readLockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected