layout | home_img | home_primary_btn | home_secondary_btn | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
home |
/img/logo-text.svg |
|
|
Zero configuration and setup for any Node.js project, and minimal setup for Browser-based projects.
QUnit can run anywhere; web browsers, Node, SpiderMonkey, even in a Web Worker! Test your code where it runs.
function add (a, b) {
return a + b;
}
QUnit.module('add', (hooks) => {
QUnit.test('two numbers', (assert) => {
assert.equal(add(1, 2), 3);
});
});
<iframe loading="lazy" title="The example test code running in the browser" src="/resources/example-add.html"></iframe>
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
Follow us on [Mastodon](https://fosstodon.org/@qunit) or [Bluesky](https://bsky.app/profile/qunitjs.com)
- 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!