fix(housekeeping): harden people account workflows

This commit is contained in:
simoleo89
2026-08-29 13:13:04 +02:00
parent e1b31ff773
commit 25b76437ff
41 changed files with 2657 additions and 838 deletions
+5 -7
View File
@@ -7,13 +7,11 @@ const { execute, staff } = vi.hoisted(() => ({
}));
vi.mock("@/features/housekeeping/domains/people/services/mutations", () => ({
createLegacyPeopleMutationContext: vi.fn(
(actor, permission, correlationId) => ({
actor,
permission,
correlationId,
}),
),
createPeopleMutationInvocation: vi.fn((staff, correlationId) => ({
expectedActorId: staff.id,
correlationId,
legacy: true,
})),
peopleMutationService: { execute },
}));
vi.mock("@/lib/admin/guard", () => ({