(overrides: Partial<DaemonRegistryEntry> = {})
| 23 | } |
| 24 | |
| 25 | function createEntry(overrides: Partial<DaemonRegistryEntry> = {}): DaemonRegistryEntry { |
| 26 | const workspaceKey = overrides.workspaceKey ?? 'workspace-a'; |
| 27 | return { |
| 28 | workspaceKey, |
| 29 | workspaceRoot: `/workspaces/${workspaceKey}`, |
| 30 | socketPath: path.join(daemonDirForWorkspaceKey(workspaceKey), 'd.sock'), |
| 31 | pid: daemonPid, |
| 32 | startedAt: '2026-05-05T00:00:00.000Z', |
| 33 | enabledWorkflows: ['build'], |
| 34 | version: '1.0.0', |
| 35 | instanceId: 'daemon-instance-a', |
| 36 | ...overrides, |
| 37 | }; |
| 38 | } |
| 39 | |
| 40 | describe('daemon control', () => { |
| 41 | let appDir: string; |
no test coverage detected