Openbravo Issue Tracking System - POS2 |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0046320 | POS2 | Core | public | 2021-04-22 10:57 | 2021-04-22 13:59 |
|
Reporter | alostale | |
Assigned To | alostale | |
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | open | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | |
Support ticket | |
Regression level | Packaging and release |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | https://gitlab.com/openbravo/product/openbravo/-/commit/1254c2bec0d1621912813df5887e0b06e2958d36 [^] |
Triggers an Emergency Pack | No |
|
Summary | 0046320: cannot execute core2 tests from vscode + jest runner |
Description | Trying to execute jest tests defined in core2 module from vscode using the jest runner extension produces an error.
Note that tests defined in other modules (ie. pos2) work fine, also executing the tests from cli is fine. |
Steps To Reproduce | 1. Install jest runner [1] in vscode
2. Run from vscode using this extension any test define in core2 (ie. App.test.jsx)
FAIL src/components/App/__test__/App.test.jsx
● Test suite failed to run
SyntaxError: /home/alostale/ws/projects/react/openbravo/modules/org.openbravo.core2/web-jspack/org.openbravo.core2/src/components/App/__test__/App.test.jsx:
Support for the experimental syntax 'jsx' isn't currently enabled (21:10):
19 |
20 | const AppTestComponent = () => {
> 21 | return <div data-testid="obc2App">ABC123</div>;
| ^
22 | };
23 |
24 | describe('App', () => {
Add @babel/preset-react (https://git.io/JfeDR [^]) to the 'presets' section of your Babel config to enable
transformation.
If you want to leave it as-is, add @babel/plugin-syntax-jsx (https://git.io/vb4yA [^]) to the 'plugins'
section to enable parsing.
[1] https://github.com/firsttris/vscode-jest-runner [^] |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | caused by | feature request | 0045971 | | closed | AugustoMauch | Openbravo ERP | New UI - infrastructure improvements |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2021-04-22 10:57 | alostale | New Issue | |
2021-04-22 10:57 | alostale | Assigned To | => Retail |
2021-04-22 10:57 | alostale | Regression level | => Packaging and release |
2021-04-22 10:57 | alostale | Regression introduced by commit | => https://gitlab.com/openbravo/product/openbravo/-/commit/1254c2bec0d1621912813df5887e0b06e2958d36 [^] |
2021-04-22 10:57 | alostale | Triggers an Emergency Pack | => No |
2021-04-22 10:57 | alostale | Relationship added | caused by 0045971 |
2021-04-22 10:57 | alostale | Assigned To | Retail => alostale |
2021-04-22 13:45 | hgbot | Note Added: 0127444 | |
2021-04-22 13:57 | hgbot | Note Added: 0127445 | |
2021-04-22 13:59 | alostale | Note Added: 0127446 | |
2021-04-22 13:59 | alostale | Status | new => closed |