Build a Unit Test library with Node.js from Scratch

Fahad Haidari
3 min readJan 3, 2020

In this short article I’m going to show you the basics of how to write your own Unit Test library from scratch, using Node.js. Note that you can also use JavaScript (in the browser) to achieve the same results.

Note: we’ll not going to cover things related to how to run a custom test command to run our tests; we’ll only have one file (index.js) which we’ll run to execute the…

--

--