Jasmine vs Vitest
Jasmine
jasmine.github.ioVitest
vitest.devSide by side
| Figure | Jasmine | Vitest |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | — |
| Web | Yes | Yes |
| Windows | Yes | Yes |
| macOS | Yes | Yes |
| Linux | Yes | Yes |
| Plans published | 1 | 1 |
| Spec score · JavaScript Testing Frameworks | 8.0 (#5) | 7.6 (#12) |
| Spec score · Unit Testing | 7.9 (#11) | 7.5 (#19) |
| Spec score · Unit Testing Frameworks | 7.9 (#14) | 7.5 (#25) |
| Support | The project directs users to its GitHub repository to report issues and contribute. | The guide directs users needing help to the Vitest Discord community and GitHub Discussions. |
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.
Vitest
Vitest is a free and open-source testing framework powered by Vite, though it can also run without Vite. It can reuse Vite configuration, plugins, resolvers, and transform pipelines. Jest-compatible APIs cover assertions, snapshots, and mocking, which can support migration from Jest. Watch mode reruns tests related to changed source or test files, and TypeScript, JSX, and ES modules work out of the box. Browser Mode runs tests in a browser and supports Playwright and WebdriverIO providers. Component testing covers Vue, React, Svelte, Lit, Marko, and other frameworks. Vitest supports coverage through V8 or Istanbul, benchmarking powered by Tinybench, parallel execution, parameterized cases, and property-based checks. An official Visual Studio Code extension is available, and the framework can be tried in StackBlitz without local installation. The listed requirements are Vite 6.4.0 or later and Node 22.12.0 or later. Help is available through the Vitest Discord community and GitHub Discussions.