CARVIEW |
Select Language
HTTP/1.1 301 Moved Permanently
Server: nginx
Date: Sun, 12 Oct 2025 01:25:37 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: Fri, 10 Oct 2025 02:05:09 GMT
access-control-allow-origin: *
etag: W/"68e869d5-2d8d"
expires: Sun, 12 Oct 2025 00:58:29 GMT
cache-control: max-age=600
content-encoding: gzip
x-proxy-cache: MISS
x-github-request-id: 8953:9D51C:D4C4A:106B5F:68EAFADD
accept-ranges: bytes
age: 0
date: Sun, 12 Oct 2025 01:25:38 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210031-BOM
x-cache: HIT
x-cache-hits: 0
x-timer: S1760232338.118611,VS0,VE289
vary: Accept-Encoding
x-fastly-request-id: e86c6ceaf902c40c5da04262bf377caf21859c92
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!