DEV Community

Discussion on: Node 18 is now available!!! 😎

Collapse
 
bfunc profile image
Pavel Litkin • Edited

Regarding test runner, unfortunately:

  1. out of the box it looks only for js, mjs, cjs files, so it will miss .ts specs when scanning folders.
  2. TypeScript definitions for "node:test" module are missing in @types/node.
  3. Watch mode is missing.

Currently we can write native tests in typescript and run them with ts-node, when we want to run bulk we can run those test with tape library ("node:test" will work) and watch mode can be done with nodemon.