QUnit says it has no dependencies, yet package.json pins three, and 3.0.0 raised the Node floor to 18
🔮 An easy-to-use JavaScript unit testing framework.
At a glance
- What is it?
- qunitjs/qunit is the JavaScript test framework that began inside jQuery and now runs in browsers, Node.js and SpiderMonkey. This article reads its package manifest closely, because the README is only 114 words long.
- Who is it for?
- Use QUnit when you test code that has to run in real browsers or in more than one JavaScript engine, or when you maintain a jQuery-era codebase that already uses it. Do not expect a feature tour from the README, and do not assume parity with Jest or Vitest, since the repository makes no comparison.
- Can I use it commercially?
- Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 55 days ago.
- What is it written in?
- Mainly JavaScript, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 23, 2026, and from our analysis. They are not legal advice.
Star history
- qunitjs/qunit4,030 ★ · -4
| Repository | 2026-10-08 | 2026-11-23 |
|---|---|---|
| qunitjs/qunit | 4k | 4k |
-4 Stars in the last 46 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
It grew out of jQuery and still tests more than Node
QUnit was originally developed for the jQuery project. It has since evolved to test any client-side or server-side JavaScript code, and the README lists its targets: all major desktop and mobile web browsers, Node.js and SpiderMonkey. SpiderMonkey is Mozilla's engine, so QUnit can run in a bare engine shell with no browser around it.
That breadth is the reason to pick it over a Node-first runner. A suite written in QUnit can execute in a browser tab, from a command line and in an engine shell without being rewritten.
The package.json keywords include testing, unit, assert, assertion, tap, tape, karma and jquery. The author field credits the OpenJS Foundation and other contributors, with the full list in AUTHORS.txt.
The README claims no dependencies while package.json lists three
The README describes QUnit as having no dependencies. The dependencies block in package.json holds commander 12.1.0, node-watch 0.7.4 and tiny-glob 0.2.9. All three are exact pinned versions with no caret.
The repository does not say which part of QUnit uses them. The files array in package.json ships bin/, src/cli/, qunit/ and LICENSE.txt, and the bin field maps the qunit command to bin/qunit.js. Their names point to argument parsing, file watching and glob matching, jobs a command-line runner has.
In practice the claim holds for the browser bundle and may not hold for the Node runner. If you audit your dependency tree, expect these three to appear when you install the qunit package from npm.
Package exports pick a different build for Node import, bundlers and require
The exports map in package.json has several branches for the package root. Under the node condition, import resolves to ./qunit/esm/qunit-wrapper-nodejs-module.js and everything else to ./qunit/qunit.js. Under the module condition used by bundlers, import resolves to ./qunit/esm/qunit.module.js and require resolves to ./qunit/qunit-wrapper-bundler-require.js. A generic import falls to ./qunit/esm/qunit.module.js, and a generic default falls to ./qunit/qunit.js.
The main field is qunit/qunit.js for older tooling. A separate export, ./qunit/qunit.css, exposes the browser stylesheet for the HTML reporter.
The consequence is that import and require can load different wrapper files depending on who asks. If a test behaves differently in a bundler than in plain Node, check which export branch resolved before suspecting your test code.
Version 3.0.0 landed on 2026-09-27 after a long release candidate
The release feed shows 3.0.0 published on 2026-09-27, 2.26.0 on 2026-06-01 and 3.0.0-rc1 on 2026-01-11. The release candidate stage lasted roughly eight months, and a 2.x release came out in the middle of it, so the 2.x line was still receiving updates while 3.0 was in preparation.
The package.json version reads 3.0.0, and the repository is not archived. The last push was 2026-09-29, two days after the release.
The repository root contains History.md and RELEASE.md. The first holds the changelog and the second describes the release process. A README this short sends upgrade questions to those files, so a team on 2.x should read History.md before bumping.
Node 18 is the minimum, and the build chain is Rollup, Babel and Grunt
package.json sets engines node to 18 or higher. An older Node line cannot run the command-line runner, though the browser build is a separate artifact under qunit/.
The source is built, not published raw. The repository has a Gruntfile.js and a rollup.config.js, and the dev dependencies include Babel 7.29.7 with preset-env and the external-helpers plugin, plus the Rollup plugins for babel, commonjs, node-resolve and replace. ESLint is pinned to ^8.57.0 through .eslintrc.json and .eslintrc.base.js.
Cross-browser checking uses @qunitjs/browserstack-runner, a fork at version 0.9.5-qunitjs.2. A benchmark package also appears in the dev dependencies. A CI badge and a workflow named reproducible.yaml exist alongside the build, though the README does not explain what that check compares.
Where to read the real docs, and what the README leaves out
The README holds no install command, no code sample and no feature list. It points to four places on qunitjs.com: API documentation, guides, browser support under the intro compatibility section, and browser automation integrations.
The project offers two support routes. Bugs and feature requests go through GitHub issues, and general help goes to a chat room linked from the intro page. Contributors are sent to CONTRIBUTING.md, and security reports belong in SECURITY.md. A bestpractices.dev badge shows project number 5751 in the OpenSSF programme, and a Coveralls badge tracks coverage.
The repository also carries a demos/ folder, a test/ folder and a docs/ folder. Since no assertion API appears in the README, learn it from the API page on the website, not from this repository's front page.
Comparisons with Jest, Vitest, Mocha and JUnit are not made by the project
People look up QUnit against Jest, Vitest, Mocha and JUnit. The repository makes none of those comparisons, so any ranking you read elsewhere is the writer's opinion and not the project's.
What the evidence supports is narrower. QUnit's pitch is one framework across browsers, Node.js and SpiderMonkey, shipped as a package that exposes separate ESM and CommonJS entry points. Its command-line runner needs Node 18, and it has a browser automation story built around the BrowserStack runner fork.
It does not claim parallel test files, snapshot testing or built-in mocking in anything shown in the repository. If you need those, read the guides on qunitjs.com before committing, since an absence in the README is not proof of an absence in the framework.
Editorial conclusion
Use QUnit when you test code that has to run in real browsers or in more than one JavaScript engine, or when you maintain a jQuery-era codebase that already uses it. Do not expect a feature tour from the README, and do not assume parity with Jest or Vitest, since the repository makes no comparison. Before upgrading from 2.x, read the 3.0.0 notes in History.md and confirm your CI runs Node 18 or newer.
Frequently asked questions
What is QUnit used for?
QUnit is a JavaScript testing framework originally developed for jQuery. It tests client-side or server-side code in major browsers, Node.js and SpiderMonkey.
How does QUnit compare with Jest?
The repository does not compare QUnit with Jest. It describes QUnit as an easy-to-use framework that supports major desktop and mobile browsers, Node.js and SpiderMonkey.
How does QUnit compare with Vitest?
The repository makes no comparison with Vitest. Its package.json requires Node 18 or higher and ships a qunit command-line binary at bin/qunit.js.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/qunitjs-qunit)Star history chart for your README
[](https://hysenlabs.com/projects/qunitjs-qunit)Was this useful?