Openbravo Issue Tracking System - POS2
View Issue Details
0049213POS2Corepublic2022-05-04 16:432023-01-03 16:48
jarmendariz 
Triage Platform Base 
normalminorhave not tried
newopen 
5
 
 
No
0049213: Warning message about incorrect reference to underscore appears on Storyshots tests
When you run Storyshots tests, both in local or in CI, the following warning message appears:

   console.warn
      Unexpected error while loading ./components/PaymentIntegration/stories/Autotest.stories.jsx: ReferenceError: _ is not defined

      33 | global.console.warn = (...args) => {
      34 | consoleHasErrorOrWarning = true;
    > 35 | warn(...args);
         | ^
      36 | };
      37 |
      38 | beforeEach(() => {

      at console.Object.<anonymous>.global.console.warn (jest.setup.js:35:3)
      at Object.warn (modules/org.openbravo.core2/web-jspack/org.openbravo.core2/node_modules/@storybook/core-client/node_modules/@storybook/client-logger/dist/cjs/index.js:67:65)
      at modules/org.openbravo.core2/web-jspack/org.openbravo.core2/node_modules/@storybook/core-client/dist/cjs/preview/loadCsf.js:92:34
          at Array.forEach (<anonymous>)
      at modules/org.openbravo.core2/web-jspack/org.openbravo.core2/node_modules/@storybook/core-client/dist/cjs/preview/loadCsf.js:85:20
          at Array.forEach (<anonymous>)
      at modules/org.openbravo.core2/web-jspack/org.openbravo.core2/node_modules/@storybook/core-client/dist/cjs/preview/loadCsf.js:84:12
      at ConfigApi.configure (modules/org.openbravo.core2/web-jspack/org.openbravo.core2/node_modules/@storybook/core-client/node_modules/@storybook/client-api/dist/cjs/config_api.js:26:7)
Just run 'npm test' or run any pos2 job in CI and see jest output.
Probably related to a Storybook dependency. Check if an upgrade solves this problem.
No tags attached.
Issue History
2022-05-04 16:43jarmendarizNew Issue
2022-05-04 16:43jarmendarizAssigned To => Triage Platform Base
2022-05-04 16:43jarmendarizTriggers an Emergency Pack => No
2022-05-04 16:44jarmendarizIssue cloned0049214
2022-05-04 16:44jarmendarizRelationship addedrelated to 0049214
2023-01-03 16:48shuehnerIssue Monitored: shuehner

There are no notes attached to this issue.