Skip to content

test(coverage): push llm-reply/rag-reply/notifications/testkit to 100% lines#785

Merged
chatman-media merged 1 commit into
mainfrom
coverage/round-3
Jun 20, 2026
Merged

test(coverage): push llm-reply/rag-reply/notifications/testkit to 100% lines#785
chatman-media merged 1 commit into
mainfrom
coverage/round-3

Conversation

@chatman-media

Copy link
Copy Markdown
Owner

Summary

  • llm-reply.ts → 100%: 3 tests для .catch обработчиков resolveExchangeCollected, resolveExchangeCustomerNoticeEnabled и onWarn для conversation summary
  • rag-reply.ts → 100%: тест для fire-and-forget .catch в suggestions.log
  • notifications.ts → 100%: 3 теста — sendReferencedMedia (no downloader, все 4 типа медиа), downloadPreviewMedia 500→catch→fallthrough, defaultContentType fallback
  • testkit.ts → 100%: 5 тестов для FakeMessagesRepo.insert/setTranslation/getTranslation

Test plan

  • bun test packages/conversation-engine — 648/648 pass
  • bun run typecheck — чистый
  • CI: CodeCov coverage должен вырасти с ~98.7% на ≥99%

🤖 Generated with Claude Code

…% lines

- llm-reply: 3 tests for resolveExchangeCollected/.CustomerNoticeEnabled/.catch and
  conversationsRepoFor.findById onWarn path
- rag-reply: test for suggestions.log fire-and-forget .catch path
- notifications: 3 tests — sendReferencedMedia (no downloader, all 4 kinds),
  downloadPreviewMedia 500→catch fires→fallthrough, defaultContentType fallback
- testkit: 5 tests for FakeMessagesRepo.insert/setTranslation/getTranslation edge cases

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@chatman-media chatman-media merged commit 69471a4 into main Jun 20, 2026
5 of 6 checks passed
@codecov

codecov Bot commented Jun 20, 2026

Copy link
Copy Markdown

Bundle Report

Bundle size has no change ✅

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