(NFC) karma - Enable all Civi components (not just CiviCase) #23450
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 is a small cleanup (suggested by @colemanw) that makes the
karma.conf.js
appear more general.It modifies the startup process for a test-runner; as long as the test-runner still gives the same output, it should be safe.
(Note: The patch extends/depends upon #23449 because they modify adjacent lines. But functionally, they're separate.)
Before
karma
loads baseline Angular modules and CiviCase Angular modules.After
karma
loads baseline Angular modules and any/all component-based Angular modulesComment
Why was it only CiviCase? Not certain... but I think it's because (historically)
crmMailing.ang.php
did extra work to buildsettings
, and this extra work was a bit too heavy. That work has moved (settings
becamesettingsFactory
) and maybe makes this safer.