fix(test): fix 16 pre-existing type errors in page spec fixtures #10

Merged
marcel merged 1 commits from fix/spec-user-type into main 2026-03-19 13:18:45 +01:00
Owner

Summary

  • Add user: undefined to emptyData — the layout server always returns user, so SvelteKit's generated PageData type requires it
  • Add createdAt and updatedAt to makeDoc — the API type requires these timestamps
  • Add id to tag objects in makeDocTag type requires an id field
  • Narrow status from string to 'UPLOADED' as const — the type expects the enum literal

All 16 type errors in page.svelte.spec.ts are resolved. No logic changes.

🤖 Generated with Claude Code

## Summary - Add `user: undefined` to `emptyData` — the layout server always returns `user`, so SvelteKit's generated `PageData` type requires it - Add `createdAt` and `updatedAt` to `makeDoc` — the API type requires these timestamps - Add `id` to tag objects in `makeDoc` — `Tag` type requires an `id` field - Narrow `status` from `string` to `'UPLOADED' as const` — the type expects the enum literal All 16 type errors in `page.svelte.spec.ts` are resolved. No logic changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
marcel added 1 commit 2026-03-19 12:51:48 +01:00
fix(test): add missing user, createdAt, updatedAt, and tag id fields to page spec fixtures
Some checks failed
CI / Unit & Component Tests (pull_request) Has been cancelled
CI / Backend Unit Tests (pull_request) Has been cancelled
CI / E2E Tests (pull_request) Has been cancelled
CI / Unit & Component Tests (push) Successful in 11m27s
CI / Backend Unit Tests (push) Successful in 2m11s
CI / E2E Tests (push) Failing after 56s
a3948b6a0f
marcel merged commit a3948b6a0f into main 2026-03-19 13:18:45 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: marcel/familienarchiv#10