QUnit

Alexa's Ranking: 854,558

QUnit is an extensible JavaScript testing framework, with about 22 plugins available for use at the time of writing. Its flexible APIs for custom assertions, runners, and reporters mean you can extend QUnit to fit your needs.


const add = (a, b) => a + b;QUnit.module('add', function() {
  QUnit.test('should add two numbers', function(assert) {
    assert.equal(add(1, 1), 2, '1 + 1 = 2');
  });});