mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-02-27 18:22:41 -08:00
1.4 KiB
1.4 KiB
id, title, status, assignee, created_date, updated_date, labels, dependencies, references, parent_task_id, ordinal
| id | title | status | assignee | created_date | updated_date | labels | dependencies | references | parent_task_id | ordinal | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| TASK-2.3 | Add tests for mining service | Done |
|
2026-02-10 18:56 | 2026-02-11 03:35 |
|
|
TASK-2 | 7000 |
Description
Add dedicated behavior tests for mining-service.ts covering sentence/card mining orchestration and error boundaries.
Acceptance Criteria
- #1 Happy-path behavior is covered for mining entry points.
- #2 Guard/early-return behavior is covered for missing runtime state.
- #3 Error paths are covered with expected logging/OSD behavior.
- #4
pnpm run test:coreremains green.
Implementation Notes
Added src/core/services/mining-service.test.ts with focused coverage for:
copyCurrentSubtitleServiceguard and success behaviormineSentenceCardServiceintegration/connection guards and success pathhandleMultiCopyDigitServicehistory-copy behavior with truncation messaginghandleMineSentenceDigitServiceasync error catch and OSD/log propagation
Updated package.json test:core to include dist/core/services/mining-service.test.js.
Verification: pnpm run test:core passed (20/20 after adding mining tests).