3 ms·
YES. It was such a joy to be able to ditch Jest completely and run tests natively.
by SwiftyBug 2y ago
YES. 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.