The assertion module should signals failures through messages to the test runner #52033
Labels
assert
Issues and PRs related to the assert subsystem.
feature request
Issues that request new features to be added to Node.js.
test_runner
Issues and PRs related to the test runner subsystem.
What is the problem this feature will solve?
The assertion module signals failures via exceptions. This may causes some subtle issues during program testing, since the "exception channel" is also used by the program under test which may catch the exceptions generated by failing assertions resulting in weird test behavior.
test passes...
What is the feature you are proposing to solve the problem?
When in a test runner context provide the assertion module via the testContext object:
and signal the failures via messages between testContext and assert methods.
What alternatives have you considered?
No response
The text was updated successfully, but these errors were encountered: