Skip to content

Explore testing outputs and warnings from the logger #2099

@lhw-1

Description

@lhw-1

Please confirm that you have searched existing issues in the repo

Yes, I have searched the existing issues

Any related issues?

No response

What is the area that this feature belongs to?

Code Quality, Testing

Is your feature request related to a problem? Please describe.

This issue was brought up in Pull Request #2053.

Currently, there is no way to implement unit tests for logging outputs from the winston logger; by allowing the current unit testing methods to cover logging outputs (e.g. warnings) as well, we can ensure consistent behavior across different components and increase the robustness of the system as a whole, not just what is visible.

Describe the solution you'd like

The request is to consider the different approaches to allow the winston logger outputs to be detected by our current testing approaches.

Describe alternatives you've considered

Alternatively, as jest is adopted as the testing tool for MarkBind, we can investigate approaches to test winston logger using jest (which seems to already be feasible as can be seen in this StackOverflow discussion.

Additional context

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions