Openbravo Issue Tracking System - Retail Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0045019 | Retail Modules | Web POS | public | 2020-09-09 16:19 | 2021-02-19 07:16 |
|
Reporter | alostale | |
Assigned To | Retail | |
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | out of date | |
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 | 0045019: run jest tests in strict mode |
Description | Jest tests should be run in strict mode. This would prevent at least two kind of problems (see 0044752 and 0045016):
* usage of global scope objects
* mutating frozen objects |
Steps To Reproduce | - |
Proposed Solution | It is possible to run in this way through node parameter. To check if it can be enforced somehow to be run through "npm test". If not possible, we could at least run in this mode in CI.
node --use_strict node_modules/.bin/jest
|
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0044752 | | closed | alostale | Retail Modules | do not use global scope in jest tests | related to | defect | 0045016 | | closed | Retail | Retail Modules | state actions mutate objects | related to | defect | 0045796 | | new | Retail | Retail Modules | Some jest tests were disabled in the org.openbravo.retail.asyncpayprovider module | depends on | defect | 0045814 | | closed | ranjith_qualiantech_com | Retail Modules | jest test in nexoprovider fail with --strict-mode | related to | defect | 0045751 | | closed | ranjith_qualiantech_com | Retail Modules | jest tests in org.openbravo.retail.asyncpayprovider module does not work in jest script mode (i.e. in context of pos2) | related to | defect | 0045750 | | closed | ranjith_qualiantech_com | Retail Modules | do not use global scope in jest tests (fix new cases) | related to | defect | 0045820 | | new | Retail | Retail Modules | Two jest tests have been disabled in Nexo provider as they imported enyo and could not be run in strict mode | related to | feature request | 0045846 | | closed | alostale | Openbravo ERP | prepare infrastructure to support react applications |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2020-09-09 16:19 | alostale | New Issue | |
2020-09-09 16:19 | alostale | Assigned To | => Retail |
2020-09-09 16:19 | alostale | Triggers an Emergency Pack | => No |
2020-09-09 16:19 | alostale | Relationship added | related to 0044752 |
2020-09-09 16:19 | alostale | Relationship added | related to 0045016 |
2021-01-19 12:52 | shuehner | Issue Monitored: shuehner | |
2021-01-19 12:54 | shuehner | Relationship added | related to 0045751 |
2021-01-19 12:55 | shuehner | Relationship added | related to 0045750 |
2021-01-29 13:10 | shuehner | Relationship added | related to 0045796 |
2021-01-29 13:13 | shuehner | Relationship added | depends on 0045814 |
2021-02-01 07:13 | marvintm | Relationship added | related to 0045820 |
2021-02-04 11:57 | alostale | Relationship added | related to 0045846 |
2021-02-19 06:44 | hgbot | Note Added: 0126175 | |
2021-02-19 07:16 | alostale | Note Added: 0126177 | |
2021-02-19 07:16 | alostale | Status | new => closed |
2021-02-19 07:16 | alostale | Resolution | open => out of date |