Jasmine vs Jest
Jasmine
jasmine.github.ioJest
jestjs.ioSide by side
| Figure | Jasmine | Jest |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | — |
| Web | Yes | — |
| Windows | Yes | — |
| macOS | Yes | — |
| Linux | Yes | — |
| Self-hosted | — | Yes |
| Plans published | 1 | 1 |
| Spec score · JavaScript Testing Frameworks | 8.0 (#5) | 7.7 (#8) |
| Spec score · Unit Testing | 7.9 (#11) | 7.6 (#15) |
| Spec score · Unit Testing Frameworks | 7.9 (#14) | 7.7 (#20) |
| Integrations | The browser runner can use Sauce Labs or a user's own Selenium Grid as a remote browser grid. | The guide documents use with webpack and Parcel, and says Jest is not supported by Vite because of plugin system incompatibilities. |
| Purpose | Jasmine is a framework for testing JavaScript code that runs in browsers and Node.js. | Jest is a JavaScript testing framework focused on simplicity and correctness. |
| Support | The project directs users to its GitHub repository to report issues and contribute. | The site points users to Stack Overflow, Reactiflux, and Twitter for community help. |
Plans
In their own words
Jasmine
Jasmine is a free, open-source framework for testing JavaScript code in browsers and Node.js. Tests use JavaScript’s describe/it structure and expect matchers. The jasmine-core package has no external dependencies, and the framework does not rely on other JavaScript frameworks. For Node, developers can install the package locally with npm and run it using npx jasmine; the standalone distribution runs browser specs without other tools or a web server. Jasmine supports ES modules, and its Node setup can also load CommonJS modules. The jasmine-browser-runner supports interactive browser runs and CI execution with headless Chrome or Sauce Labs. It can also connect to Sauce Labs or a user’s own Selenium Grid as a remote browser grid. Runners can be configured, reporters and matchers customized, and spec order randomized. The project lists JavaScript and TypeScript support, parallel execution and built-in mocks. Browser and Node compatibility follows a rolling window, so older platforms may receive best-effort support or be dropped in minor releases. The FAQ notes that the unmaintained karma-jasmine adapter depends on jasmine-core 4.x, which can limit access to newer Jasmine features. The project uses the MIT License and directs users to GitHub for issues and contributions.
Jest
Jest is a free, self-hosted JavaScript testing framework focused on checking correctness. It supports projects using Babel, TypeScript, Node, React, Angular, Vue and other technologies, and aims to run without configuration on most JavaScript projects. Snapshot tests compare rendered output with a saved reference. Tests run in separate processes for parallel execution, while the --coverage flag can collect coverage, including from files without tests. Mock functions and a custom import resolver support replacing objects and observing calls. Interactive watch mode reruns tests related to changed files. Installation guidance covers npm, Yarn, pnpm and Bun. Documentation describes webpack and Parcel use, but states that Vite is unsupported because of plugin-system incompatibilities. With Babel handling TypeScript, Jest transpiles tests without type-checking them during execution. A free plan is listed at free, with no paid plans or usage limits stated.