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

js-unit failure in FlagsModal.es.js Cannot find module 'FlagsModal.es' from 'FlagsModal.es.js'

    Details

    • Fix Priority:
      4

      Description

       
           [exec] > Task :apps:flags:flags-taglib:packageRunTest
           [exec] yarn run v1.13.0
           [exec] $ liferay-npm-scripts test
           [exec] Compiling soy
           [exec] Generated src/main/resources/META-INF/resources/flags/soy/Flags.soy.js
           [exec] Finished compiling soy
           [exec] Using NODE_ENV: "test"
           [exec] FAIL test/react/js/components/FlagsModal.es.js
           [exec]   ??? Test suite failed to run
           [exec] 
           [exec]     Cannot find module '../../../../src/main/resources/META-INF/resources/flags/react/js/components/FlagsModal.es' from 'FlagsModal.es.js'
           [exec] 
           [exec]       14 | 
           [exec]       15 | import {cleanup, render} from '@testing-library/react';
           [exec]     > 16 | import FlagsModal from '../../../../src/main/resources/META-INF/resources/flags/react/js/components/FlagsModal.es';
           [exec]          | ^
           [exec]       17 | import React from 'react';
           [exec]       18 | import ReactDOM from 'react-dom';
           [exec]       19 | import {
           [exec] 
           [exec]       at Resolver.resolveModule (../../../node_modules/jest-resolve/build/index.js:202:17)
           [exec]       at Object.<anonymous> (test/react/js/components/FlagsModal.es.js:16:1)
           [exec] 
           [exec] FAIL test/react/js/components/Flags.es.js
           [exec]   ??? Test suite failed to run
           [exec] 
           [exec]     Cannot find module '../../../../src/main/resources/META-INF/resources/flags/react/js/components/Flags.es' from 'Flags.es.js'
           [exec] 
           [exec]       15 | import '@testing-library/jest-dom/extend-expect';
           [exec]       16 | import {cleanup, render} from '@testing-library/react';
           [exec]     > 17 | import Flags from '../../../../src/main/resources/META-INF/resources/flags/react/js/components/Flags.es';
           [exec]          | ^
           [exec]       18 | import React from 'react';
           [exec]       19 | 
           [exec]       20 | function _renderFlagsComponent({
           [exec] 
           [exec]       at Resolver.resolveModule (../../../node_modules/jest-resolve/build/index.js:202:17)
           [exec]       at Object.<anonymous> (test/react/js/components/Flags.es.js:17:1)
           [exec] 
           [exec] Test Suites: 2 failed, 2 total
           [exec] Tests:       0 total
           [exec] Snapshots:   0 total
           [exec] Time:        2.02s
           [exec] Ran all test suites.
           [exec] Command /opt/dev/projects/github/liferay-portal/modules/node_modules/liferay-npm-scripts/node_modules/.bin/jest --config TEMP_jest.config.json exited with code 1
           [exec] 
           [exec] FAILURE: Build failed with an exception.
           [exec] 
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                john.co John Co
                Reporter:
                john.co John Co
                Participants of an Issue:
                Recent user:
                John Co
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 weeks, 3 days ago

                  Packages

                  Version Package
                  Master