- Home
- JavaScript Testing Frameworks
- ESM Unit
On the recordRead 8 Oct 202619 facts
ESM Unit
Mountain View, California, United States
On the record
- Assertions and mocks
- It includes built-in assertions, supports other assertion libraries loadable as browser ECMAScript modules, and recommends Sinon for stubs and mocks.github.com · read 8 Oct 2026
- Browser execution
- It runs tests in real browsers without bundling or transpilation.github.com · read 8 Oct 2026
- Browser support
- The README shows running tests in Chrome, Firefox, and Safari; headless mode is supported only in Chrome and Firefox.github.com · read 8 Oct 2026
- Coverage
- It supports per-file code coverage reports and configurable coverage thresholds.github.com · read 8 Oct 2026
- Debugging
- A failed test can be rerun on its own by clicking “Isolate” in the browser window.github.com · read 8 Oct 2026
- Distribution
- The README instructs users to install ESM Unit with npm as a development dependency.github.com · read 8 Oct 2026
- Integrations
- The README recommends Sinon for stubbing, mocking, and assertions against mocks.github.com · read 8 Oct 2026
- Intended users
- The stated use case is developers who need to unit test native ECMAScript modules in web browsers.github.com · read 8 Oct 2026
- License
- The repository license identifies the software as Apache License 2.0 and states that it is provided without warranties or conditions.github.com · read 8 Oct 2026
- Maker
- Intuit’s GitHub organization lists Mountain View, CA as its location.github.com · read 8 Oct 2026
- No build step
- It runs tests in browsers without bundling or transpilation.github.com · read 8 Oct 2026
- Notable limitation
- Code using JSX or imports that are not native ES modules from local relative paths must be converted before running.github.com · read 8 Oct 2026
- Purpose
- ESM Unit is a unit testing tool for native ECMAScript modules in web browsers.github.com · read 8 Oct 2026
- Requirements
- ESM Unit requires Node 18 LTS or later and test code that runs in current browsers as native ECMAScript modules without transpilation.github.com · read 8 Oct 2026
- Support
- The project README invites users to open an issue or pull request and says it welcomes contributions.github.com · read 8 Oct 2026
- Test isolation
- Each test file runs in an isolated iframe with its own window and DOM document.github.com · read 8 Oct 2026
- Watch mode
- The --watch option reruns tests when files change, and cannot be used at the same time as --debug.github.com · read 8 Oct 2026