[Test] Investigate console warnings in get_local_stats.test.ts #556
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 issue
Currently,
get_local_stats.test.ts
prints out console warnings when run the unit test. To make a clean unit test, we want to explore the reasons for these errors/warnings and decide whether we could fix or remove them.To Reproduce
Run:
yarn test:jest {path to get_local_stats.test.ts}
Tasks
I think the logger warning is being called as expected, indicating that the code is handling some specific case. The fact that the logger is outputting a warning is not a problem in itself, as long as it's the expected behavior in this specific test case. But it's essential to understand the context of the test and the purpose of the warning message. If the test is designed to check the handling of missing OpenSearchDashboards stats, then this warning message is expected and normal.
To sum up, this is a good research task to help us understand the testing context and make sure there is no issue to see logger warning. To close the issue, pls answer:
The text was updated successfully, but these errors were encountered: