ESM Unit
5.4#20 in javascript testing frameworksWeb
Visit
| Fact | ESM Unit | QUnit |
|---|---|---|
| Debugging | A failed test can be rerun on its own by clicking “Isolate” in the browser window. | The browser runner can prioritize previously failing tests and rerun selected tests or modules. |
| Distribution | The README instructs users to install ESM Unit with npm as a development dependency. | QUnit 3.0.0 is available as JavaScript and CSS files from the jQuery CDN and as an npm package. |
| Founded | 1983 | 2008 |
| Integrations | The README recommends Sinon for stubbing, mocking, and assertions against mocks. | Documented browser automation integrations include Karma, Web Test Runner, Testem, WebdriverIO, and TestCafe. |
| Intended users | The stated use case is developers who need to unit test native ECMAScript modules in web browsers. | QUnit is intended for developers testing JavaScript in the environment where the code runs, including browsers, workers, and servers. |
| Purpose | ESM Unit is a unit testing tool for native ECMAScript modules in web browsers. | QUnit is a JavaScript testing framework originally developed for jQuery and now used by JavaScript libraries and applications. |
| Support | The project README invites users to open an issue or pull request and says it welcomes contributions. | The project directs users to GitHub issues, Stack Overflow, and its Matrix chat room for questions and help. |
No prices published.
ESM Unit suits developers who need browser-based unit tests for native ECMAScript modules. It is intended for projects that can run without transpilation or bundling.
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.