test(person): add now-required precision fields to Person test fixtures

birthDatePrecision/deathDatePrecision are @Schema REQUIRED, so the
generated Person type makes them non-optional — fixtures that were
type-clean before the regen get UNKNOWN defaults.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-06-12 18:28:09 +02:00
committed by marcel
parent a75c46351f
commit e4e277219e
5 changed files with 12 additions and 1 deletions

View File

@@ -288,6 +288,8 @@ describe('DocumentList undated badge in person grouping', () => {
lastName: 'Mustermann',
displayName: 'Max Mustermann',
personType: 'PERSON' as const,
birthDatePrecision: 'UNKNOWN' as const,
deathDatePrecision: 'UNKNOWN' as const,
familyMember: false,
provisional: false
};
@@ -296,6 +298,8 @@ describe('DocumentList undated badge in person grouping', () => {
lastName: 'Brandt',
displayName: 'Felix Brandt',
personType: 'PERSON' as const,
birthDatePrecision: 'UNKNOWN' as const,
deathDatePrecision: 'UNKNOWN' as const,
familyMember: false,
provisional: false
};