test(backend): add unit coverage for mutation-testing helpers, rollout strategies, and tracing utilities - #1200
Open
henrypeters wants to merge 1 commit into
Open
Conversation
…t strategies, and tracing utilities Co-authored-by: kilo
|
@henrypeters 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.
Summary
Adds co-located unit tests for four modules that previously had no test coverage:
mutation-testing.helpers.ts — , , , , , , , and the map. Edge cases include empty transition arrays, terminal/boundary states, and invalid self-loops.
rollout-strategy.service.ts — (boundaries 0, 100, out-of-range ), at exact (>=) and (>) boundaries, and for both healthy-switch and unhealthy-no-switch paths.
rollout-strategy.ts (cache logic within ) — cache-hit/miss behavior, TTL expiry, eviction, and with and without a specific .
tracing.ts — , , (including null/undefined/empty/malformed inputs), success/error paths, exception event attributes, and correlation-ID generation when no incoming ID is present.
Changes
apps/backend/src/services/mutation-testing.helpers.test.ts(new)apps/backend/src/services/rollout-strategy.service.test.ts(new)apps/backend/src/services/rollout-strategy.test.ts(new)apps/backend/src/lib/tracing.test.ts(new)Issues
Closes #1079
Closes #1080
Closes #1081
Closes #1082