feat: unify Person and User creation form with conditional password

This commit is contained in:
2026-06-16 21:48:59 +02:00
parent e5717461cf
commit 1f5a849bf5
21 changed files with 462 additions and 171 deletions
@@ -86,7 +86,9 @@ describe("user use-cases", () => {
await expect(prisma.user.count()).resolves.toBe(1)
await expect(
prisma.user.findUniqueOrThrow({ where: { email: "existing@example.test" } }),
prisma.user.findUniqueOrThrow({
where: { email: "existing@example.test" },
}),
).resolves.toMatchObject({ email: "existing@example.test" })
})