CARVIEW |
Select Language
HTTP/2 200
server: GitHub.com
content-type: text/html; charset=utf-8
last-modified: Fri, 10 Oct 2025 02:05:09 GMT
access-control-allow-origin: *
etag: W/"68e869d5-2d8d"
expires: Fri, 10 Oct 2025 06:33:30 GMT
cache-control: max-age=600
content-encoding: gzip
x-proxy-cache: MISS
x-github-request-id: D669:1502A6:F44D9:11D5AE:68E8A661
accept-ranges: bytes
age: 0
date: Fri, 10 Oct 2025 20:41:28 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210026-BOM
x-cache: HIT
x-cache-hits: 0
x-timer: S1760128888.317802,VS0,VE292
vary: Accept-Encoding
x-fastly-request-id: a8edd2dcc5648a474489a7a9c8e8b8d1c1a927fa
content-length: 3535
QUnit
Easy
Zero configuration and setup for any Node.js project, and minimal setup for Browser-based projects.
Universal
QUnit can run anywhere; web browsers, Node, SpiderMonkey, even in a Web Worker! Test your code where it runs.
Extensible
Flexible APIs for custom assertions, runners, and reporters mean you can extend QUnit to fit your needs.
A Quick Example
function add (a, b) {
return a + b;
}
QUnit.module('add', (hooks) => {
QUnit.test('two numbers', (assert) => {
assert.equal(add(1, 2), 3);
});
});
Browser Result
CLI Result
TAP version 13
ok 1 add > two numbers
1..1
# pass 1
# skip 0
# todo 0
# fail 0
Current Release
v2.24.1 (changelog)
These are the official release channels for QUnit:
- Download:
qunit-2.24.1.js
andqunit-2.24.1.css
- npm:
npm install --save-dev qunit
- Yarn:
yarn add --dev qunit
Join the Community
Follow us on Mastodon or Bluesky
- Support & Chat, for if you get stuck or need help.
- Watch the repository, to find out about new release.
- The source of this website is in the “docs/” directory.
What are you waiting for? Get started!