This reverts commit 6da88ec19eea2780c030dc95fcc55d059fed69e5. Removing existing handlers turns out to be load-bearing for Jasmine's parallel mode. ParallelWorker (in the jasmine package) installs a pair of handlers before booting core so that it can catch late async errors that happen after one spec file has finished executing and before the next starts. If those aren't uninstalled, errors that get routed through jasmine-core's normal error handling mechanism will also be reported via ParallelWorker's handlers. It might be possible for ParallelWorker to uninstall and install its handlers at the right time, but it's likely that there would be gaps in between when core uninstalls its handlers and when ParallelWorker installs. And in any case, the old behavior of GlobalErrors was a perfect match for what ParallelWorker needs, so let's keep it.
A JavaScript Testing Framework
Jasmine is a Behavior Driven Development testing framework for JavaScript. It does not rely on browsers, DOM, or any JavaScript framework. Thus it's suited for websites, Node.js projects, or anywhere that JavaScript can run.
Upgrading from Jasmine 4.x? Check out the upgrade guide.
Contributing
Please read the contributors' guide.
Installation
There are several different ways to install Jasmine, depending on your environment and how you'd like to use it. See the Getting Started page for details.
Usage
See the documentation site, particularly the Your First Suite tutorial for information on writing specs, and the FAQ.
Supported environments
Jasmine tests itself across popular browsers (Safari, Chrome, Firefox, and Microsoft Edge) as well as Node.
| Environment | Supported versions |
|---|---|
| Node | 20, 22, 24 |
| Safari | 16*, 17* |
| Chrome | Evergreen |
| Firefox | Evergreen, 102*, 115*, 128*, 140 |
| Edge | Evergreen |
For evergreen browsers, each version of Jasmine is tested against the version of the browser that is available to us at the time of release. Other browsers, as well as older & newer versions of some supported browsers, are likely to work. However, Jasmine isn't tested against them and they aren't actively supported.
* Supported on a best-effort basis. Support for these versions may be dropped if it becomes impractical, and bugs affecting only these versions may not be treated as release blockers.
To find out what environments work with a particular Jasmine release, see the release notes.
Maintainers
Maintainers Emeritus
- Davis W. Frank
- Rajan Agaskar
- Greg Cobb
- Chris Amavisca
- Christian Williams
- Sheel Choksi
Copyright (c) 2008-2019 Pivotal Labs
Copyright (c) 2008-2025 The Jasmine developers
This software is licensed under the MIT License.