giuliodaprela.com
Unit Tests in WordPress: Testing JavaScript With Karma - Giulio Daprela
In this article I will install Node.js and Karma and then use Jasmine or QUnit. Testing JavaScript can be done with these packages