-
-
Notifications
You must be signed in to change notification settings - Fork 698
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Have meaningful exceptions savvy of the Node 19 test runner (node:test) #1511
Comments
I used Chai previously with Mocha, which has its own problems, especially when writing mostly async code. However, when a test throws in Mocha, it's obvious why something failed. I tried evaluating other BDD "expect" libs such as Jasmine and Jest, but I love the Chai syntax, and of course I have the routine from years of using it, so I'd love some solution to this, even if it was some temporary wrapper thing. |
That is very bad 😞. It's hard to tell exactly what is going wrong but I imagine our What I'm a little confused over is why |
I think this may have gotten resolved. Running the repro today I see the following output for chai:
|
Currently, when using chai with
node:test
runners of the latest node v19 releases, the exceptions of expect and such are pretty bad, with no good idea of what actually failed. So considering the example here:..and then see how much better node's own assert library throws, although not perfectly.
The text was updated successfully, but these errors were encountered: