Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-98111

Fix test failures caused by move of debounce to frontend-js-web

    Details

      Description

      As described in upstream PR: https://github.com/liferay/liferay-npm-tools/pull/160

      The "segments/segments-web" tests (and others) are currently broken because we moved debounce() into "frontend-js-web". This leads to two problems:

      • Evaluating the index.es.js entry point of "frontend-js-web" causes us to transitively invoke a Soy template ("Modal.soy") which, in the context of "segments-web", has not been built, and we have no mapping to find.
      • We can't even find index.es.js because we don't have a mapping that enables us to translate from the "main" property defined in the "package.json" of "frontend-js-web" to where the file really resides on disk (several levels buried down).

      So, we add a transform that turns these ".soy" imports from other projects into harmless no-ops while still allowing projects to exercise their own actually-compiled-to-".soy.js" files, and we automatically set up mappings based on an analysis of the "workspaces" defined in the top-level "package.json".

      A nice bonus will be that we can remove some custom mapping and transform config along the way.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                brian.chan Brian Chan
                Reporter:
                greg.hurrell Greg Hurrell
                Recent user:
                Shalaka Tendulkar
                Participants of an Issue:
                Engineering Assignee:
                Greg Hurrell
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package
                  7.2.X
                  Master