4 ms·
I 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
by svieira 3y ago
I 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!