Openbravo Issue Tracking System - POS2 |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0048987 | POS2 | POS | public | 2022-04-06 14:53 | 2022-04-17 21:12 |
|
Reporter | jarmendariz | |
Assigned To | jarmendariz | |
Priority | high | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0048987: Improve jest tests to make them compatible with Node 16 |
Description | Some tests are passing with the current Node version (v14), but v16 introduces some changes that makes a few test fails.
At the moment we only noticed two scenarios:
1- In ErrorHandler.test.js, the runtime exception message changed from - "Cannot read property 'b' of undefined" to "Cannot read properties of undefined (reading 'b')
2- Unhandled Promise rejection warning:
Currently in v14 the following message appears:
(node:539993) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode [^]). (rejection id: 2)
(node:539993) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Starting from v16, those warnings becomes errors, so it would be nice to fix them as soon as possible. |
Steps To Reproduce | See description |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | depends on | backport | 0049048 | TAP | closed | jarmendariz | Improve jest tests to make them compatible with Node 16 | blocks | feature request | 0048870 | | closed | jarmendariz | Add support to Node 16/Npm 8 |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2022-04-06 14:53 | jarmendariz | New Issue | |
2022-04-06 14:53 | jarmendariz | Assigned To | => jarmendariz |
2022-04-06 14:53 | jarmendariz | Triggers an Emergency Pack | => No |
2022-04-06 14:53 | jarmendariz | Status | new => scheduled |
2022-04-06 14:54 | jarmendariz | Relationship added | blocks 0048870 |
2022-04-06 18:58 | hgbot | Note Added: 0136374 | |
2022-04-06 18:58 | hgbot | Note Added: 0136375 | |
2022-04-06 18:59 | hgbot | Note Added: 0136376 | |
2022-04-13 09:12 | jarmendariz | Status | scheduled => acknowledged |
2022-04-13 09:12 | jarmendariz | Status | acknowledged => scheduled |
2022-04-17 21:12 | hgbot | Resolution | open => fixed |
2022-04-17 21:12 | hgbot | Status | scheduled => closed |
2022-04-17 21:12 | hgbot | Note Added: 0136527 | |
2022-04-17 21:12 | hgbot | Note Added: 0136528 | |
2022-04-17 21:12 | hgbot | Note Added: 0136529 | |
2022-04-17 21:12 | hgbot | Note Added: 0136530 | |
2022-04-17 21:12 | hgbot | Note Added: 0136531 | |
2022-04-17 21:12 | hgbot | Note Added: 0136532 | |
2022-04-17 21:12 | hgbot | Note Added: 0136533 | |
2022-04-17 21:12 | hgbot | Note Added: 0136534 | |
2022-04-17 21:12 | hgbot | Note Added: 0136535 | |
2022-04-17 21:12 | hgbot | Note Added: 0136536 | |
2022-04-17 21:12 | hgbot | Note Added: 0136537 | |
2022-04-17 21:12 | hgbot | Note Added: 0136538 | |
Notes |
|
(0136374)
|
hgbot
|
2022-04-06 18:58
|
|
|
|
(0136375)
|
hgbot
|
2022-04-06 18:58
|
|
|
|
(0136376)
|
hgbot
|
2022-04-06 18:59
|
|
|
|
(0136527)
|
hgbot
|
2022-04-17 21:12
|
|
|
|
(0136528)
|
hgbot
|
2022-04-17 21:12
|
|
|
|
(0136529)
|
hgbot
|
2022-04-17 21:12
|
|
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: 3bcfe124703a991f358cf69b170eac3ded7fe211
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 17-04-2022 20:41:28
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/3bcfe124703a991f358cf69b170eac3ded7fe211 [^]
Related to ISSUE-48987: Change material-ui/core imports to be explicit, avoiding css warning
---
M web-jspack/org.openbravo.core2/src/components/BaseAccordion/BaseAccordion.jsx
M web-jspack/org.openbravo.core2/src/components/BaseButtonGroup/BaseButtonGroup.jsx
M web-jspack/org.openbravo.core2/src/components/BaseFormCheckbox/BaseFormCheckbox.jsx
M web-jspack/org.openbravo.core2/src/components/BaseFormInput/BaseFormInput.jsx
M web-jspack/org.openbravo.core2/src/components/BaseFormInput/ClearInputButton.jsx
M web-jspack/org.openbravo.core2/src/components/BaseFormRadioGroup/BaseFormRadioGroup.jsx
M web-jspack/org.openbravo.core2/src/components/BaseGridLayout/BaseGridLayout.jsx
M web-jspack/org.openbravo.core2/src/components/BaseKeymap/hooks/usePagination.js
M web-jspack/org.openbravo.core2/src/components/BaseList/BaseList.jsx
M web-jspack/org.openbravo.core2/src/components/BaseMenu/BaseMenu.jsx
M web-jspack/org.openbravo.core2/src/components/BaseMenuItemSubmenu/BaseMenuItemSubmenu.jsx
M web-jspack/org.openbravo.core2/src/components/BasePopover/BasePopover.jsx
M web-jspack/org.openbravo.core2/src/components/BaseSwitch/BaseSwitch.jsx
M web-jspack/org.openbravo.core2/src/components/ConfigSwipeableLine/BaseSwipeableLine.jsx
M web-jspack/org.openbravo.core2/src/components/Grid/DataGrid/DataGrid.jsx
M web-jspack/org.openbravo.core2/src/components/InputPassword/InputPassword.jsx
M web-jspack/org.openbravo.core2/src/components/LoadingScreen/LoadingScreen.jsx
M web-jspack/org.openbravo.core2/src/components/MultiStepProcess/MultiStepProcessTitle/MultiStepProcessTitle.jsx
M web-jspack/org.openbravo.core2/src/components/SettingsButton/SettingsButton.jsx
---
|
|
|
(0136530)
|
hgbot
|
2022-04-17 21:12
|
|
|
|
(0136531)
|
hgbot
|
2022-04-17 21:12
|
|
|
|
(0136532)
|
hgbot
|
2022-04-17 21:12
|
|
|
|
(0136533)
|
hgbot
|
2022-04-17 21:12
|
|
|
|
(0136534)
|
hgbot
|
2022-04-17 21:12
|
|
|
|
(0136535)
|
hgbot
|
2022-04-17 21:12
|
|
|
|
(0136536)
|
hgbot
|
2022-04-17 21:12
|
|
|
|
(0136537)
|
hgbot
|
2022-04-17 21:12
|
|
|
|
(0136538)
|
hgbot
|
2022-04-17 21:12
|
|
|