Jasmine
6.5#7 in unit testingFree planFree planWebLinuxmacOSWindows
Visit
| Fact | Jasmine | QUnit |
|---|---|---|
| Browser runner | The jasmine-browser-runner package can run specs interactively in browsers or in CI using headless Chrome or Sauce Labs. | The browser runner reports test results and resets fixture markup after each test. |
| Compatibility limit | The FAQ says the unmaintained karma-jasmine adapter depends on jasmine-core 4.x, so newer Jasmine features may not work through it. | The compatibility guide lists Node.js 18+ for QUnit 3’s ESM version. |
| Integrations | The browser runner can use Sauce Labs or a user's own Selenium Grid as a remote browser grid. | Documented browser automation integrations include Karma, Web Test Runner, Testem, WebdriverIO, and TestCafe. |
| Purpose | Jasmine is a framework for testing JavaScript code that runs in browsers and Node.js. | QUnit is a JavaScript testing framework originally developed for jQuery and now used by JavaScript libraries and applications. |
| Support | The project directs users to its GitHub repository to report issues and contribute. | The project directs users to GitHub issues, Stack Overflow, and its Matrix chat room for questions and help. |
Jasmine suits JavaScript and TypeScript developers who need browser or Node.js specs and prefer a framework without external dependencies in jasmine-core. Its browser runner options also suit teams running tests interactively or in CI.
QUnit suits developers testing JavaScript in browsers, workers, or server runtimes. Its browser reporter and automation integrations are relevant to teams running tests in those environments.