Skip to content

Commit 5ba4eec

Browse files
committed
docs: document daemon tests
1 parent a628a66 commit 5ba4eec

27 files changed

Lines changed: 27 additions & 0 deletions

src/daemon/cmd-argv.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Daemon command argv tests cover command argument construction.
12
import { describe, expect, it } from "vitest";
23
import { parseCmdScriptCommandLine, quoteCmdScriptArg } from "./cmd-argv.js";
34

src/daemon/constants.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Daemon constant tests cover platform constants used by service installers.
12
import { describe, expect, it } from "vitest";
23
import {
34
formatGatewayServiceDescription,

src/daemon/diagnostics.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Daemon diagnostics tests cover service diagnostic collection and formatting.
12
import fs from "node:fs";
23
import os from "node:os";
34
import path from "node:path";

src/daemon/inspect.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Daemon inspect tests cover service inspection and diagnostic output.
12
import fs from "node:fs/promises";
23
import os from "node:os";
34
import path from "node:path";

src/daemon/launchd-current-service.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Launchd current service tests cover resolving active macOS service labels.
12
import { describe, expect, it } from "vitest";
23
import { isCurrentProcessLaunchdServiceLabel } from "./launchd-current-service.js";
34

src/daemon/launchd-restart-handoff.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Launchd restart handoff tests cover restart coordination on macOS.
12
import { afterEach, describe, expect, it, vi } from "vitest";
23

34
const spawnMock = vi.hoisted(() => vi.fn());

src/daemon/launchd.integration.e2e.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Launchd integration tests cover daemon CLI behavior in macOS-like scenarios.
12
import { spawnSync } from "node:child_process";
23
import { randomUUID } from "node:crypto";
34
import fs from "node:fs/promises";

src/daemon/launchd.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Launchd tests cover macOS service plist generation and command handling.
12
import { PassThrough } from "node:stream";
23
import { beforeEach, describe, expect, it, vi } from "vitest";
34
import { GATEWAY_SERVICE_KIND, GATEWAY_SERVICE_MARKER } from "./constants.js";

src/daemon/program-args.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Daemon program argument tests cover CLI argument construction for services.
12
import path from "node:path";
23
import { afterEach, describe, expect, it, vi } from "vitest";
34

src/daemon/restart-logs.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Daemon restart log tests cover restart log formatting and filtering.
12
import { describe, expect, it } from "vitest";
23
import {
34
GATEWAY_RESTART_LOG_FILENAME,

0 commit comments

Comments
 (0)