Skip to content

test(domain-tasks): add coverage for queries + commands - #225

Merged
h4yfans merged 2 commits into
mainfrom
debt/phase-4-u1-domain-tasks-tests
Apr 16, 2026
Merged

test(domain-tasks): add coverage for queries + commands#225
h4yfans merged 2 commits into
mainfrom
debt/phase-4-u1-domain-tasks-tests

Conversation

@h4yfans

@h4yfans h4yfans commented Apr 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

Phase 4 U1 — adds Vitest coverage for @memry/domain-tasks package (previously 0 tests).

  • queries.test.ts — createTasksQueries happy path, errors, immutability
  • commands-create.test.ts / commands-update.test.ts / commands-move.test.ts — DTO validation, command behavior
  • index.test.ts — barrel export smoke
  • test-fixtures.ts — shared mock factories

Tests run inside desktop shared vitest project via glob added in #224 (no per-package config).

Test plan

  • Files created, largest 637 lines (under 800-line pre-commit limit)
  • CI: pnpm --dir apps/desktop test:coverage green
  • CI: coverage ratchet not regressed

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

h4yfans and others added 2 commits April 16, 2026 07:31
Phase 4 U0 prep: add coverage + test globs for @memry/domain-tasks and
@memry/rpc so worker PRs adding tests under those packages execute via
pnpm --dir apps/desktop test:coverage.

Zero behavior change — config only.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Phase 4 U1 — adds Vitest coverage for @memry/domain-tasks package
(previously 0 tests). Covers createTasksQueries + createTasksCommands
factories with happy-path, validation, error, and immutability assertions.

Test files added:
- queries.test.ts
- commands-create.test.ts
- commands-update.test.ts
- commands-move.test.ts
- index.test.ts
- test-fixtures.ts (shared mocks)

Runs inside desktop shared vitest project (packages/<pkg>/src/*.test.ts
glob, no per-package config needed).

Ref: .claude/plans/tech-debt-remediation.md Phase 4.1
@h4yfans
h4yfans merged commit 6fce2a7 into main Apr 16, 2026
2 checks passed
@h4yfans
h4yfans deleted the debt/phase-4-u1-domain-tasks-tests branch April 16, 2026 14:05
h4yfans added a commit that referenced this pull request May 6, 2026
* chore(vitest): include domain-tasks + rpc in shared project

Phase 4 U0 prep: add coverage + test globs for @memry/domain-tasks and
@memry/rpc so worker PRs adding tests under those packages execute via
pnpm --dir apps/desktop test:coverage.

Zero behavior change — config only.


* test(domain-tasks): add coverage for queries + commands

Phase 4 U1 — adds Vitest coverage for @memry/domain-tasks package
(previously 0 tests). Covers createTasksQueries + createTasksCommands
factories with happy-path, validation, error, and immutability assertions.

Test files added:
- queries.test.ts
- commands-create.test.ts
- commands-update.test.ts
- commands-move.test.ts
- index.test.ts
- test-fixtures.ts (shared mocks)

Runs inside desktop shared vitest project (packages/<pkg>/src/*.test.ts
glob, no per-package config needed).

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

---------
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