You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
assert: supported or should a userland module be used #4532
stable and locked doesn't mean "good for all purposes".
I think the statement should be qualified to add "For the purposes of unit testing, it is recommended that a userland unit test library be used instead."
Apparently some people think that the assert lib is for unit testing, and then complain about missing features. While it is used for unit testing in node... that is unusual, its mostly for in-source assertion of invariants.
In the docs at https://nodejs.org/api/assert.html it states:
Is this still a valid statement, or should we remove this line as the assert module is marked as stable and locked?