test(domain-tasks): add coverage for queries + commands - #225
Merged
Conversation
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
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 ---------
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Phase 4 U1 — adds Vitest coverage for
@memry/domain-taskspackage (previously 0 tests).queries.test.ts— createTasksQueries happy path, errors, immutabilitycommands-create.test.ts/commands-update.test.ts/commands-move.test.ts— DTO validation, command behaviorindex.test.ts— barrel export smoketest-fixtures.ts— shared mock factoriesTests run inside desktop shared vitest project via glob added in #224 (no per-package config).
Test plan
pnpm --dir apps/desktop test:coveragegreenRef: .claude/plans/tech-debt-remediation.md Phase 4.1