Skip to content

test: add sync-core unit tests (62 tests)#118

Merged
tomymaritano merged 3 commits into
developfrom
feature/sync-tests
Mar 11, 2026
Merged

test: add sync-core unit tests (62 tests)#118
tomymaritano merged 3 commits into
developfrom
feature/sync-tests

Conversation

@tomymaritano

Copy link
Copy Markdown
Collaborator

Summary

  • Add 23 unit tests for SyncQueue covering queueChange, getPendingChanges, markSynced, markFailed, cleanup
  • Add 35 unit tests for SyncEngine covering lifecycle, push/pull cycles, conflict strategies, error handling, status callbacks
  • All tests use in-memory mocks (no native deps needed)

Test plan

  • pnpm test passes (62 new tests + 4 existing = 62 total in sync-core)
  • Formatting verified with pnpm format:check
  • Lint clean with pnpm lint

🤖 Generated with Claude Code

tomymaritano and others added 3 commits March 11, 2026 02:16
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@tomymaritano tomymaritano merged commit c913465 into develop Mar 11, 2026
3 checks passed
@tomymaritano tomymaritano deleted the feature/sync-tests branch March 11, 2026 13:10
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