[Test] Clean and investigate console errors/warnings in unit tests #554
Labels
good first issue
Good for newcomers
technical debt
If not paid, jeapardizes long-term success and maintainability of the repository.
test:unit
Describe the bug
Currently, there are many console.errors in the unit test. To build a clean unit test, we want to investigate these console errors and clean up if possible. Some examples are:
To Reproduce
Run:
yarn test:jest --runInBand --detectOpenHandles --reporters=default
If see an error like this:
then pass ab argument:
yarn test:jest --runInBand --detectOpenHandles --reporters=default
Expected behavior
explore each problem unit test and do the following step for each test suite
what causes the console error or issues?
should this unit test log this error or warning message?
if answer to the above question is no, then can we fix it?
The final output is expected to be a cleaned unit test with un-necessary error/warnings been removed.
OpenSearch Version
OpenSearch 1.0.0
Dashboards Version
Dashboards 1.0.0
Sub issues
issue: #555
issue: #556
issue: #557
The text was updated successfully, but these errors were encountered: