4 ms·
The author says: > Normally, I use express as a webserver, and I use jest for testing. ... Naturally, without dependencies, I can’t use any of these things. B
by notpachet 3y ago
The author says:
> Normally, I use express as a webserver, and I use jest for testing. ... Naturally, without dependencies, I can’t use any of these things.
But the examples are still using Jest from the look of it.
- svieira 3y agoI think he just elided the imports of node's new-ish built-in `node:test` module: https://nodejs.org/api/test.html https://nodejs.org/api/test.html
- tobyhinloopen 3y ago(author here) Yes, that's correct. It seems like I forget to mention that I would be using node's test module. It was in the script at some point but deleted it in a later revision, it seems.
- notpachet 3y agoOhh, my bad. I didn't realize that the native module offers a describe/it syntax. That's pretty cool!
- tobyhinloopen 3y agoMe neither until I wrote my own testing library for this blog and threw it away when I noticed the built-in module!