DEV Community

Discussion on: What do you use to test JavaScript code (if)?

Collapse
 
gypsydave5 profile image
David Wickes • Edited

Tape.js for util libs

Yes, yes and 1000 times yes. By far the most sensible option 90% of the time for unit testing some JS. Small surface area (barely any dependencies), runs quickly, sensible set of default assertions built in. Very much in the style of the Go testing library - you can extend it yourself by writing your own functions.

If you're looking for clean, easy to read tests that don't install half of npm to your computer, this is my go to lib.