Project:
| View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
| ID | ||||||||
| 0046008 | ||||||||
| Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
| feature request | [Openbravo ERP] A. Platform | minor | have not tried | 2021-03-04 18:57 | 2021-03-15 10:05 | |||
| Reporter | cberner | View Status | public | |||||
| Assigned To | cberner | |||||||
| Priority | normal | Resolution | fixed | Fixed in Version | PR21Q2 | |||
| 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 | |||||||
| Merge Request Status | approved | |||||||
| Review Assigned To | ||||||||
| OBNetwork customer | No | |||||||
| Web browser | ||||||||
| Modules | Core | |||||||
| Support ticket | ||||||||
| Regression level | ||||||||
| Regression date | ||||||||
| Regression introduced in release | ||||||||
| Regression introduced by commit | ||||||||
| Triggers an Emergency Pack | No | |||||||
| Summary | 0046008: Jest tests don't fail if console.error and console.warn are generated | |||||||
| Description | A jest test should fail if it shows a console.error or console.warn, this is not happening by default, jest doesn't check this. This check would make sure jest execution's are clean and free of errors and warnings. Note: If a test intentionally throws a console.error or console.warn, it should mock it accordingly and expect it. | |||||||
| Steps To Reproduce | Add a console.error/console.warn to some successful jest test. Run that jest test, with current behaviour it will be green although some console.error/warn will appear in the process. | |||||||
| Tags | No tags attached. | |||||||
| Attached Files | ||||||||
Relationships [ Relation Graph ]
[ Dependency Graph ]
|
|||||||||
|
|||||||||
Notes |
|
|
(0126505) hgbot (developer) 2021-03-04 19:02 |
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/324 [^] |
|
(0126563) hgbot (developer) 2021-03-09 11:04 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/361 [^] |
|
(0126694) hgbot (developer) 2021-03-15 10:04 |
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^] Changeset: 385f8526ff414424ac2f34eb052452710078d7ba Author: Cristian Berner <cristian.berner@openbravo.com> Date: 2021-03-15T09:57:11+01:00 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/385f8526ff414424ac2f34eb052452710078d7ba [^] Related to ISSUE-46008: Disable storyshots tests that generate a console.error from grid Those storyshots currently generate a console.error related with asynchronous data received in TimeoutDataSource and LazyDataSource, when fixed, those will be enabled again. --- M web-jspack/org.openbravo.core2/src/components/FilterableGrid/stories/FilterableGrid.stories.jsx M web-jspack/org.openbravo.core2/src/components/Grid/stories/GridDataSource.stories.jsx M web-jspack/org.openbravo.core2/src/components/Grid/stories/GridPaginate.stories.jsx M web-jspack/org.openbravo.core2/src/components/Grid/stories/GridSorting.stories.jsx --- |
|
(0126695) hgbot (developer) 2021-03-15 10:05 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/361 [^] |
|
(0126696) hgbot (developer) 2021-03-15 10:05 |
Directly closing issue as related merge request is already approved. Repository: https://gitlab.com/openbravo/product/openbravo [^] Changeset: 920eb47f9dbb18f790c812bcdfbaf5a7305e733e Author: Cristian Berner <cristian.berner@openbravo.com> Date: 2021-03-15T09:56:23+01:00 URL: https://gitlab.com/openbravo/product/openbravo/-/commit/920eb47f9dbb18f790c812bcdfbaf5a7305e733e [^] Fixes FR-46008: Jest tests don't fail when console.warn or console.error appear in a test This is due to how jest works, it doesn't directly check if a console.warn or a console.error has been thrown during a test execution. To check this, console.error and console.warn functions are modified in jest.setup.js so it handles and fails correctly the test that showed some console.error/warn. --- M jest.setup.js --- |
|
(0126697) hgbot (developer) 2021-03-15 10:05 |
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/324 [^] |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2021-03-04 18:57 | cberner | New Issue | |
| 2021-03-04 18:57 | cberner | Assigned To | => cberner |
| 2021-03-04 18:57 | cberner | OBNetwork customer | => No |
| 2021-03-04 18:57 | cberner | Modules | => Core |
| 2021-03-04 18:57 | cberner | Triggers an Emergency Pack | => No |
| 2021-03-04 19:02 | hgbot | Merge Request Status | => open |
| 2021-03-04 19:02 | hgbot | Note Added: 0126505 | |
| 2021-03-09 11:04 | hgbot | Note Added: 0126563 | |
| 2021-03-14 17:12 | hgbot | Merge Request Status | open => approved |
| 2021-03-15 10:04 | hgbot | Note Added: 0126694 | |
| 2021-03-15 10:05 | hgbot | Note Added: 0126695 | |
| 2021-03-15 10:05 | hgbot | Resolution | open => fixed |
| 2021-03-15 10:05 | hgbot | Status | new => closed |
| 2021-03-15 10:05 | hgbot | Fixed in Version | => PR21Q2 |
| 2021-03-15 10:05 | hgbot | Note Added: 0126696 | |
| 2021-03-15 10:05 | hgbot | Note Added: 0126697 | |
| 2023-02-23 17:28 | jarmendariz | Relationship added | related to 0051685 |
| Copyright © 2000 - 2009 MantisBT Group |