Behaviour-driven JavaScript testing framework for browsers and Node.js
open sourceMITfree
Jasmine is a behaviour-driven development testing framework for JavaScript. It doesn't rely on browsers, the DOM or any JavaScript framework, so it suits websites, Node.js projects and anywhere JavaScript runs. Each release is tested against Node and the current Safari, Chrome, Firefox and Edge.
Problems it solves
- write unit tests for my JavaScript code in BDD style
- test JavaScript that runs both in the browser and in Node
- pick a JavaScript test framework with no DOM dependency
Features
- behaviour-driven development style specs
- no dependency on browsers, the DOM or a framework
- runs in Node and in Safari, Chrome, Firefox and Edge
- a documentation site with tutorials and an FAQ
Limitations
- Node 20 and Safari 26 are supported on a best-effort basis only.1
Alternatives
The same job
These do what Jasmine does.
- Mocha Feature-rich JavaScript test framework for Node.js and the browser
- tape Minimal TAP-producing test harness for Node.js and browsers
- Nightwatch.js Node.js end-to-end testing framework on the W3C WebDriver API
- Jest Delightful JavaScript Testing
- Vitest Next generation testing framework powered by Vite
