Skip to content

test(rpc): add schema + domain coverage - #226

Merged
h4yfans merged 1 commit into
mainfrom
debt/phase-4-u2-rpc-tests
Apr 16, 2026
Merged

test(rpc): add schema + domain coverage#226
h4yfans merged 1 commit into
mainfrom
debt/phase-4-u2-rpc-tests

Conversation

@h4yfans

@h4yfans h4yfans commented Apr 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

Phase 4 U2 — adds Vitest coverage for @memry/rpc package (previously 0 tests).

  • schema.test.ts — defineMethod/defineEvent/defineDomain factory tests
  • tasks.test.ts / notes.test.ts / inbox.test.ts / settings.test.ts / calendar.test.ts — per-domain Zod schema validation (valid + invalid)
  • index.test.ts — rpcDomains array smoke test

Relies on domain-tasks + rpc globs from #224.

Test plan

  • 7 test files created, all <130 lines (under 800 pre-commit limit)
  • CI: pnpm --dir apps/desktop test:coverage green

Ref: .claude/plans/tech-debt-remediation.md Phase 4.2

Phase 4 U2 — adds Vitest coverage for @memry/rpc package (previously 0
tests). Covers defineMethod/defineEvent/defineDomain factories in
schema.ts and validates Zod schemas across all 5 domain specs
(tasks, notes, inbox, settings, calendar) with valid + invalid fixtures.

Runs inside desktop shared vitest project via glob added in #224.

Ref: .claude/plans/tech-debt-remediation.md Phase 4.2
@h4yfans
h4yfans merged commit 5ff5021 into main Apr 16, 2026
2 checks passed
@h4yfans
h4yfans deleted the debt/phase-4-u2-rpc-tests branch April 16, 2026 14:05
h4yfans added a commit that referenced this pull request May 6, 2026
Phase 4 U2 — adds Vitest coverage for @memry/rpc package (previously 0
tests). Covers defineMethod/defineEvent/defineDomain factories in
schema.ts and validates Zod schemas across all 5 domain specs
(tasks, notes, inbox, settings, calendar) with valid + invalid fixtures.

Runs inside desktop shared vitest project via glob added in #224.

Ref: .claude/plans/tech-debt-remediation.md Phase 4.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant