3 ms·
The recently-added test runner is very cool too!
by crabmusket 2y ago
The recently-added test runner is very cool too!
- SwiftyBug 2y agoYES. It was such a joy to be able to ditch Jest completely and run tests natively.
- joseferben 2y agoi tried that but had to revert to vitest, the native test runner feels incomplete atm.
- crabmusket 2y agoWhat is missing for your use case or workflow?
- sureIy 2y agoProbably a bunch of assertion types and general DX. Node:test is just a feature, Vitest is a whole product. The former might be enough for small packages but nowhere near useful for anything non-trivial.
- crabmusket 2y agoFair enough. We still use Jest at work for exactly those reasons. In my personal projects, I prefer to minimise dependencies rather than get every DX benefit I can.
- joseferben 2y agofor instance exiting the runner on the first error. and the diffs with node:assert are not as nice either compared to vitest. i'm building a framework with minimal dependencies at https://www.plainweb.dev https://www.plainweb.dev so i'm super excited about everything that node builds in (sqlite, typescript). but there is a difference between supporting the bare minimum and actually making it nice to use day to day.
- conaclos 2y agoI tested it a few months ago. However, the output isn't very human friendly.
- herpdyderp 2y agoI just started using it the other day and it’s a dream. I look forward to the eventual stability of their snapshot testing.