So the task here is provide a reasonable substitute for all that in our default mock environment.
Disclaimer: I haven't analyzed those usages yet to see why we need that repeated stubbing, so before taking on this task, we should actually do that, to make sure the plan proposed in this ticket is actually legitmate.
Issue type
Description
As noted here, we currently have very similar Jest set-up code that stubs out
Liferay.Util.sub
in three locations:modules/dxp/apps/segments/segments-experiment-web/jest-setup.config.js
modules/dxp/apps/analytics/analytics-reports-web/jest-setup.config.js
modules/apps/layout/layout-reports-web
too.So the task here is provide a reasonable substitute for all that in our default mock environment.
Disclaimer: I haven't analyzed those usages yet to see why we need that repeated stubbing, so before taking on this task, we should actually do that, to make sure the plan proposed in this ticket is actually legitmate.