test: backend unit-test coverage (689 cases across 14 packages)#6255
Open
mariana-andruk-qa wants to merge 1 commit into
Open
test: backend unit-test coverage (689 cases across 14 packages)#6255mariana-andruk-qa wants to merge 1 commit into
mariana-andruk-qa wants to merge 1 commit into
Conversation
Adds backend unit tests across 14 packages using the existing mocha+esmock harness (same dist-import pattern as the current common/tests suite). Tests and test-script wiring only; no source changes. Each test was validated by building the service and running it individually; only tests passing green are included. Per-package: common 175, api-gateway 115, guardian-service 94, policy-service 67, interfaces 161, auth-service 19, worker-service 14, analytics-service 13, ai-service 10, topic-listener 7, notification 7, logger 4, queue 3. Adds mocha test scripts to interfaces, ai-service, logger-service, notification-service, topic-listener-service.
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.
What
Adds 689 backend unit tests across 14 packages (common, interfaces, guardian-service, policy-service, api-gateway, auth-service, worker-service, analytics-service, ai-service, topic-listener-service, notification-service, queue-service, logger-service, application-events), using the existing mocha + esmock harness already present in the repo (same
dist/-import pattern as the currentcommon/testssuite).Tests and test-script wiring only — no source changes.
Validation
Each test was validated by building the service and running it individually against current source; only tests passing green are included.
Per-package: common 175, api-gateway 115, guardian-service 94, policy-service 67, interfaces 161, auth-service 19, worker-service 14, analytics-service 13, ai-service 10, topic-listener-service 7, notification-service 7, logger-service 4, queue-service 3.
Harness
Adds
mochatest scripts tointerfaces,ai-service,logger-service,notification-service, andtopic-listener-service(they had none). Run a package's suite withyarn --cwd <package> testafter building it.