Test/add service unit tests#745
Merged
Mosas2000 merged 4 commits intoJun 27, 2026
Merged
Conversation
|
@Alaka-ibr Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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.
Completed Work
1. Closes #699: Escalation Service ✅
File: backend/tests/services/escalation.service.test.ts
Lines: 581
Test Coverage:
Incident creation with various severity levels
Incident acknowledgement and resolution
Escalation logic with threshold handling
Escalation rule management
Timeout-based escalation
Acknowledgement requirement handling
Engine start/stop functionality
History tracking
Edge cases and error handling
2. Closes #700: Digest Scheduler Service ✅
File: backend/tests/services/digestScheduler.service.test.ts
Lines: 746
Test Coverage:
Subscription creation and management
Daily and weekly digest generation
Quiet hours logic and timezone handling
Delivery scheduling and processing
Email notification integration
Retry mechanisms for failed deliveries
History retrieval and unread counts
Filter and preference handling
3. Closes #701: Dependency Graph Service ✅
File: backend/tests/services/dependencyGraph.service.test.ts
Lines: 412
Test Coverage:
Graph retrieval with all nodes and edges
Node type filtering (bridge, oracle, indexer, rpc, queue, database, notifier, api)
Status filtering (healthy, degraded, down, unknown)
Search functionality
Summary statistics calculation
Edge relationship validation
Multiple filter combinations
Case-insensitive and trimmed input handling
4. Closes #702: External Dependency Monitor Service ✅
File: backend/tests/services/externalDependencyMonitor.service.test.ts
Lines: 701
Test Coverage:
Dependency listing with history
Health check execution (HTTP and JSON-RPC)
Status determination logic
Maintenance mode handling
Alert threshold triggering
Consecutive failure tracking
Timeout handling
Different check types for various providers