| CARVIEW |
Select Language
HTTP/1.1 301 Moved Permanently
Server: nginx
Date: Fri, 26 Dec 2025 13:04:24 GMT
Content-Type: text/html
Content-Length: 162
Connection: keep-alive
Location: https://qunitjs.com/
HTTP/2 200
server: GitHub.com
content-type: text/html; charset=utf-8
last-modified: Wed, 17 Dec 2025 12:50:10 GMT
access-control-allow-origin: *
etag: W/"6942a702-2d83"
expires: Fri, 26 Dec 2025 13:14:24 GMT
cache-control: max-age=600
content-encoding: gzip
x-proxy-cache: MISS
x-github-request-id: 257D:1F53DD:54F465:5EA890:694E87D8
accept-ranges: bytes
age: 0
date: Fri, 26 Dec 2025 13:04:25 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210026-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1766754265.839315,VS0,VE206
vary: Accept-Encoding
x-fastly-request-id: 5f1ce11fe5e0e28bb80a85b7303277ad28b7a9e9
content-length: 3521
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.3 (changelog)
These are the official release channels for QUnit:
- Download:
qunit-2.24.3.jsandqunit-2.24.3.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!