-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(fix) Remove uses of externalModuleName in styleguide components #1125
Conversation
FYI @Twiineenock |
Size Change: -80.7 kB (-1.43%) Total Size: 5.57 MB
ℹ️ View Unchanged
|
Ok. This is not as straightforward as I first thought. Frontend modules that reuse the
Also, typing that gave me a sense of deja vu, which probably means this was all discussed somewhere in the past. Let me see whether I can look it up. The other bit of context here is that the goal is to fix the failing tests in Patient Management. A less convoluted path to getting that done would be to update the |
Yeah, this is why we did it this way, and how I suggest we keep doing it |
The issue with doing away with the We probably should just fix the stub. |
Closing as discussed in favour of updating the stub. Thanks, guys. |
Requirements
feat
,fix
, orchore
, among others). See existing PR titles for inspiration.For changes to apps
If applicable
Summary
This PR removes uses of
externalModuleName
from two components in the styleguide. AFAIK,externalModuleName
is used when you want to load a config schema from a separate frontend module into another. In this case, both components are colocated within the style guide and reference the style guide config schema, so there's no need to useexternalModuleName
. Unrelatedly, this exposed an issue with the useConfig stub in the framework mock (which is responsible for the failing tests from this refactor in Patient Management). The stub does not correctly handleexternalModuleName
and fails silently in the test environment when the component under test leveragesexternalModuleName
.Screenshots
Related Issue
Other