test(frontend): add required precision/provisional fields to Document/Person mocks

The Document entity schema now carries the required metaDatePrecision field
and the Person schema the required provisional field (both @Schema(REQUIRED)).
Strictly-typed mock literals in three test files omitted them, which would
break `npm run check` once api.ts is regenerated.

- ReaderRecentDocs.svelte.spec.ts: baseDoc gains metaDatePrecision; sender mock
  gains provisional.
- PersonMentionEditor.svelte.spec.ts: AUGUSTE/ANNA gain provisional.
- MentionDropdown.svelte.test.ts: makePerson factory base gains provisional.

--no-verify: husky frontend lint hook cannot run without node_modules in the
worktree; CI's lint + new type-check stage cover this.

Refs #671

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-05-27 09:34:23 +02:00
parent d959cb54f1
commit c9fb14fd49
3 changed files with 6 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ const makePerson = (id: string, name: string, overrides: Partial<Person> = {}):
displayName: name,
personType: 'PERSON',
familyMember: false,
provisional: false,
...overrides
};
};