liferay / liferay-frontend-projects

A monorepo containing assorted Frontend Infrastructure Team projects
Other
67 stars 68 forks source link

Provide stub implementation of `Liferay.Util.sub` for use in Jest tests #519

Open wincent opened 3 years ago

wincent commented 3 years ago

Issue type

Description

As noted here, we currently have very similar Jest set-up code that stubs out Liferay.Util.sub in three locations:

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.

dgarciasarai commented 3 years ago

Thanks @wincent, it will be awesome!