4 ms·
It's been a really eventful month for Node. First they added node:sqlite in v22.5.0, and now TypeScript support is landing. I love the direction Node is heading
by throwitaway1123 2y ago
It's been a really eventful month for Node. First they added node:sqlite in v22.5.0, and now TypeScript support is landing. I love the direction Node is heading in.
- crabmusket 2y agoThe 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.
- eknkc 2y agoIt is Bun influence / competition I guess. Good for everyone.
- mark_and_sweep 2y agoI believe the competition started with Deno. But yes, Bun is part of the competition now, too.
- eknkc 2y agoDeno was doing its own thing though. Bun came out swinging with strong Node.JS compatibility promises. I have simply replaced node with bun for most of my own work without much effort. The mental effort required is to use `bun` instead of `node` in command line for most of the trivial things.