Hacker News new | ask | show | jobs
by ovao 1225 days ago
One particularly nice aspect to Deno is its built-in test runner. There’s no complex configuration, like grabbing ts-jest, setting up your transform filters, ensuring that you’re injecting `@jest/types` and then almost invariably spending time debugging precisely why it still can’t grok an export keyword.

The Node testing ecosystem has its obvious advantages in terms of how much it’s been buttressed by third-party efforts (which makes it incredibly flexible), but just being able to write a TypeScript test file, run `deno test` and just have it work is really a breath of fresh air.

1 comments

node has a built in test runner too, but i've not used it yet.
Recently stabilized in v18, yes, and it’s pretty great, but it doesn’t support TypeScript without a transpilation step, so you’ll still need to implement a build pipeline before you’re able to run a test.

For pure JS projects it’s quite nice though.

ah indeed. it should :(