feat(testing): add isolated Stryker mutation configs and queue worker test suites - #1889
Merged
sublime247 merged 1 commit intoAug 28, 2026
Conversation
|
@ShantelPeters 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.
📌 Overview
This PR resolves SIGBUS worker process failures during StrykerJS mutation testing on Node v24 / macOS Apple Silicon by introducing standalone, isolated Jest configurations (
jest.stryker.config.jsandjest.stryker.queue.config.js). It also expands unit test coverage for queue worker operations and core services (feeService,transactionService,syncWorker,syncQueue).🎯 Key Changes
Isolated Jest Configurations for StrykerJS:
jest.stryker.config.jstargeting core services.jest.stryker.queue.config.jstargeting queue workers.isolatedModules: trueandmaxWorkers: 1ints-jestto disable worker thread spawning during mutation test execution.projectsarray inheritance to avoid duplicate worker initialization inside Stryker sandboxes.Expanded Test Suites:
src/services/__tests__/feeService.test.ts: Complete unit tests for fee calculation, active configuration retrieval, audit logging, and CRUD operations.src/services/__tests__/transactionService.test.ts: Complete unit tests for transaction lifecycle management.src/tests/queue/syncQueue.test.ts: Edge-case unit tests covering options fallbacks (priority,delay,jobId), optional chaining, and queue health metrics (getSyncQueueStats).src/tests/queue/syncWorker.nats.test.ts&src/tests/queue/syncWorker.test.ts: Test coverage for BullMQ and NATS JetStream sync message handlers.Type Safety & Tracing Fixes:
src/queue/syncWorker.tsto ensure compatibility across OpenTelemetry/Datadog interfaces.🧪 Verification & Results
1. Standalone Jest Test Executions
2 passed, 2 total(30/30 unit tests green)CLOSES #1836