test: catch and fail on uncaught exceptions and rejections #1599
Labels
bug
Something isn't working
E:Comprehensive dev testing
See https://github.com/waku-org/pm/issues/90 for details
good first issue
Good for newcomers
test
Issue related to the test suite with no expected consequence to production code
This is a bug report/feature or change request/support request
Problem
uncaughtException
andunhandledRejection
can happen when an exception is thrown or a promise rejects in an internal process not directly instantiated and caught by the user.See #1584 (comment)
Proposed Solutions
Ensure that no such occurrence happens when running js-test by listening for these NodeJS event for all tests and failing them if one is caught.
Notes
The text was updated successfully, but these errors were encountered: