Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0046320 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [POS2] Core | minor | have not tried | 2021-04-22 10:57 | 2021-04-22 13:59 | |||
Reporter | alostale | View Status | public | |||||
Assigned To | alostale | |||||||
Priority | normal | Resolution | open | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | ||||||||
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 [^] | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |||||||||
|
Notes | |
(0127444) hgbot (developer) 2021-04-22 13:45 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/475 [^] |
(0127445) hgbot (developer) 2021-04-22 13:57 |
Merge request closed: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/475 [^] |
(0127446) alostale (manager) 2021-04-22 13:59 |
It's possible to configure jest runner not to change directory to execute the tests from the root path with "jestrunner.changeDirectoryToWorkspaceRoot": false. |
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 |
Copyright © 2000 - 2009 MantisBT Group |