Skip to content

test(backend): add unit coverage for mutation-testing helpers, rollout strategies, and tracing utilities - #1200

Open
henrypeters wants to merge 1 commit into
StellerCraft:mainfrom
henrypeters:feature/issue-1079-1082
Open

test(backend): add unit coverage for mutation-testing helpers, rollout strategies, and tracing utilities#1200
henrypeters wants to merge 1 commit into
StellerCraft:mainfrom
henrypeters:feature/issue-1079-1082

Conversation

@henrypeters

Copy link
Copy Markdown
Contributor

Summary

Adds co-located unit tests for four modules that previously had no test coverage:

  1. mutation-testing.helpers.ts — , , , , , , , and the map. Edge cases include empty transition arrays, terminal/boundary states, and invalid self-loops.

  2. rollout-strategy.service.ts — (boundaries 0, 100, out-of-range ), at exact (>=) and (>) boundaries, and for both healthy-switch and unhealthy-no-switch paths.

  3. rollout-strategy.ts (cache logic within ) — cache-hit/miss behavior, TTL expiry, eviction, and with and without a specific .

  4. 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

…t strategies, and tracing utilities

Co-authored-by: kilo
@drips-wave

drips-wave Bot commented Aug 29, 2026

Copy link
Copy Markdown

@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! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant