test(housekeeping): prove 137 route parity
CI / check (pull_request) Successful in 1m9s
CI / release (pull_request) Skipped
CI / deploy (pull_request) Skipped

This commit is contained in:
Simo committed 2026-08-30 19:11:14 +02:00
1 parent b235ce08ff
commit 8a31556d51
36 files changed
+431 -77

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@ vi.mock(
}),
);
vi.mock("@/features/housekeeping/foundation/commands/bootstrap", () => ({
vi.mock("@/features/housekeeping/commands", () => ({
housekeepingCommandRegistryReady: true,
}));
+1 -1
View File
@@ -1,6 +1,6 @@
"use server";
import "@/features/housekeeping/foundation/commands/bootstrap";
import "@/features/housekeeping/commands";
import { dispatchHousekeepingCommand } from "@/features/housekeeping/foundation/commands/dispatcher";
import {
type HousekeepingResult,
+4
View File
@@ -7,6 +7,10 @@ const { getContextMock, searchMock } = vi.hoisted(() => ({
searchMock: vi.fn(),
}));
vi.mock("@/features/housekeeping/commands", () => ({
housekeepingCommandRegistryReady: true,
}));
vi.mock("@/features/housekeeping/foundation/server-capability-context", () => ({
getHousekeepingCapabilityContext: getContextMock,
}));
+1
View File
@@ -23,6 +23,7 @@ export async function executeHousekeepingSearch(
): Promise<HousekeepingSearchResponse> {
if (typeof term !== "string") return failedSearch("VALIDATION");
try {
await import("@/features/housekeeping/commands");
const context = await getHousekeepingCapabilityContext();
return await searchHousekeeping(term, context);
} catch {