QUnit is a JavaScript test suite. It’s used by the jQuery project to test its code and plugins but is capable of testing any generic JavaScript code and even JavaScript code on the server-side. This article explores how to write unit tests with QUnit for Javascript.