diff --git a/HEALTH.md b/HEALTH.md index e6792a6..b367b00 100644 --- a/HEALTH.md +++ b/HEALTH.md @@ -64,5 +64,5 @@ has valid configuration; readiness then verifies the live dependencies. The API and worker are separate processes. These endpoints report API process and API dependency health only; they do not assert that the background worker is running. Monitor the worker process independently using its process -supervisor, logs, and job metrics. A healthy `/health/ready` response therefore +supervisor, logs, and job metrics. A healthy `/health` response therefore does not mean settlement submission or reconciliation jobs are being consumed. diff --git a/tests/health.test.ts b/tests/health.test.ts index 9de0b52..40f6d03 100644 --- a/tests/health.test.ts +++ b/tests/health.test.ts @@ -1,4 +1,4 @@ -import { beforeEach, describe, expect, it, vi } from "vitest"; +import { describe, it, expect, beforeEach, vi } from "vitest"; const h = vi.hoisted(() => ({ queryRaw: vi.fn(), @@ -7,11 +7,14 @@ const h = vi.hoisted(() => ({ })); vi.mock("../src/db", () => ({ - prisma: { $queryRaw: h.queryRaw, $queryRawUnsafe: h.queryRawUnsafe }, + prisma: { + $queryRaw: h.queryRaw, + $queryRawUnsafe: h.queryRawUnsafe, + }, })); vi.mock("../src/services/network", () => ({ - getFeeStats: h.feeStats, + getFeeStats: (...args: unknown[]) => h.feeStats(...args), })); import { buildApp } from "../src/app";