npm / jasmine-core
jasmine-core
What changed in jasmine-core 4 to 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
82 breaking7 deprecations15 new APIs and options9 behavior and defaults18 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initjasmine-core 741 changes
Breaking changes 24
The boot API has been removed as part of the redesigned boot process.
The Node boot API no longer exists; use installGlobals when globals are needed.
Configure default reporter options through this method on Jasmine or ParallelRunner instead of the prior individual methods.
The core instance is now created automatically.
Default reporter settings in config files must now be nested under defaultReporter.
Firefox 102, 115, and 128 are no longer supported.
Browsers create globals automatically, while Node does not.
The unused hideDisabled configuration option and its checkbox have been removed.
HtmlReporter has been removed.
HtmlSpecFilter has been removed.
Call installGlobals in Node to create globals; the jasmine package does this by default.
In Node, importing jasmine-core repeatedly returns the same instance.
jasmineRequire is no longer exposed as part of the redesigned module system.
jsApiReporter has been removed.
The configuration setting is no longer supported; remove it or provide a custom loader if the default loader does not work.
The current version is incompatible with jasmine-core 7.x; Karma users are advised to consider a maintained alternative.
Monkey patching is blocked, except for globals and properties explicitly documented as writeable.
The noGlobals API has been removed as part of the redesigned boot process.
The Node boot API no longer exists; requiring jasmine-core boots it without creating globals.
Reporters that handle spec statuses must now handle the new notApplicable status.
Most private APIs are no longer exposed.
Safari 16 and 17 are no longer supported.
The default setting is now time.
Zone.js monkey patching of jasmine-core no longer works, so Zone.js users cannot upgrade to jasmine-core 7.0 or later.
Deprecations 2
forbidDuplicateNames is deprecated; the next major version will require unique spec and suite names unconditionally.
The count setting is deprecated and will be removed in a future release.
New APIs and options 5
Browsers automatically create globals, while Node does not; in Node, call installGlobals to create them.
Call installGlobals in Node to create globals; the jasmine package does this by default.
DOM NodeList instances can now be pretty-printed.
Use notApplicable for specs never expected to pass in the current environment or configuration; it differs from pending in intent and reporting.
Call reset to clear state and configuration between consecutive independent test runs.
Behavior and default changes 3
The browser boot process has been simplified; maintainers of custom boot files should update them to match the distributed boot.js.
This call can be made any time after jasmine.js loads and before env.execute() is called.
Specs disabled with xdescribe receive a pending reason indicating they were temporarily disabled.
Fixes and other changes 7
The reported version number is corrected; it was incorrect in 7.0.0.
Fixed excess skipping of intervals when clearInterval is called from a timer callback.
Fixed excess skipping of timeouts when clearTimeout is called from a timer callback.
Jasmine no longer calls hasOwnProperty on user-provided objects.
Node 26 was added to the supported environments.
The HTML reporter now shows the correct mark for pending specs.
Fixes excess skipping of timeouts and intervals when clearTimeout or clearInterval is called from a timer callback.
jasmine-core 644 changes
Breaking changes 31
Specs disabled with xdescribe now have the pending reason “Temporarily disabled with xdescribe”.
Firefox 102, 115, and 128 are no longer supported or tested.
Safari 16 and 17 are no longer supported because Jasmine can no longer reliably test them.
The actual property is no longer included in expectation results passed to reporters; use passed and message instead.
In Node, boot now creates a new core instance each time by default; pass false to retain the 5.x behavior.
boot1.js no longer adds jsApiReporter to the env.
Spec/suite orders that cause a suite to be entered more than once are no longer supported when passing IDs to Env#execute.
The expected and actual properties have been removed from passed and failed expectations.
The expected property is no longer included in expectation results passed to reporters; use passed and message instead.
Set this core configuration property to false to retain the old behavior of allowing duplicate spec and suite names.
Global error spies always receive a single argument; the browser error event is no longer passed as a second argument.
HTML reporters cache configuration throughout each run, so changes made while specs are running no longer affect reporter behavior.
HTML reporters use a larger body font size.
The createElement option is ignored; HtmlReporter now unconditionally uses document.createElement.
The createTextNode option is ignored; HtmlReporter now unconditionally uses document.createTextNode.
HtmlReporterV2 creates different query string parameters than HtmlReporter, so software that processes those parameters needs updating.
Private APIs have been removed from the jasmine namespace; only documented APIs should be relied on.
The order property no longer includes undocumented properties.
The order property no longer includes undocumented properties.
The mock clock no longer supports eval forms of setTimeout and setInterval.
Mock clock timing functions can no longer be spied on, which previously prevented the mock clock from uninstalling itself.
Node 18 is no longer supported; supported Node versions are 20, 22, and 24.
Undocumented properties of the order property are no longer included in jasmineStarted and jasmineDone reporter events.
Reporter events are deep-cloned before being passed to each reporter, protecting reporters against later mutation by jasmine-core or other reporters.
The mock clock no longer supports the eval form of setInterval.
Keys must be strings, and values must be both structured-cloneable and JSON-serializable.
The mock clock no longer supports the eval form of setTimeout.
The argument passed to spec filters is a spec metadata instance rather than the internal spec object.
A spy invoked via .call(null, ...) or .apply(null, ...) receives null as its this argument instead of globalThis.
Meaningless properties such as status and failedExpectations are omitted from these reporter events; that data is available from suiteDone and specDone.
Meaningless properties such as status and failedExpectations are omitted from suiteStarted events.
Deprecations 5
Loading jasmine-core as an ES module in a browser now produces a warning because this configuration is untested and unsupported.
HtmlReporter is deprecated in favor of HtmlReporterV2.
HtmlSpecFilter is deprecated in favor of HtmlReporterV2.
jsApiReporter is deprecated.
Common monkey patching patterns are detected and produce a deprecation warning; overwriting jasmine-core-provided values may break in any release.
New APIs and options 4
Adds the toBeRejectedWithMatching async matcher.
A new HTML reporter provides exact spec and suite filtering, a progress bar, immediate failed-spec details, and a Performance tab.
The pretty printer is now statically exposed as jasmine.pp().
The experimental value time may make Jasmine run significantly faster in Safari and similar browsers; it has not been tested on a wide variety of workloads.
Behavior and default changes 1
Jasmine reports the underlying errors that make up an AggregateError.
Fixes and other changes 3
Calling jasmineRequire.core from an ES module no longer emits a deprecation warning.
An execution order passed to Env#execute must not enter any suite more than once.
globalThis is used to determine the global object during initialization, making jasmine-core more tolerant of buggy bundlers or loaders that leave this undefined in the global context.
jasmine-core 516 changes
Breaking changes 6
Global errors are detected via addEventListener rather than setting window.onerror.
Env#execute is now async and no longer accepts a callback parameter.
Firefox 91 support was dropped; supported Firefox versions are 102 and 113.
node_boot.js was removed; use the exported boot function instead.
Node 20 is now supported; support for Node 12, 14, and 16 was dropped. Supported Node versions are 18 and 20.
Safari 14 support was dropped; supported Safari versions are 15–16.
New APIs and options 4
Adds a config option to fix reporter-event filename properties when configurations wrap describe, such as zone.js.
Adds a config option to fix reporter-event filename properties when configurations wrap it, such as zone.js.
Adds an asymmetric equality tester that merges multiple testers.
Parallel execution in Node is supported via the jasmine package.
Behavior and default changes 1
The boot function exported by the core module returns the same object every time it is called.
Fixes and other changes 5
Reporter-event filename properties are no longer deprecated.
Safari 26 is supported on a best-effort basis; future support will focus on the latest Safari available on GitHub Actions and, while practical, Safari 16 and 17.
The global error handler is uninstalled at the end of env execution.
Pending specs always have a non-color indication.
The contrast of the version number and inactive tab links was improved.
jasmine-core 430 changes
Breaking changes 21
Combining callback-based and promise-based async forms now reports an error rather than a warning.
If a beforeAll function fails for a reason other than a failed expectation, Jasmine skips the suite contents and child suites, except same-suite afterAll functions; affected specs are reported as failed.
If a beforeEach function fails for a reason other than a failed expectation, Jasmine skips subsequent beforeEach functions, the spec, and child-suite afterEach functions; same- or higher-level afterEach functions still run.
No longer included; use boot0.js and boot1.js instead.
The old custom equality tester style, where matchers received testers from Jasmine and passed them back to matchersUtil methods, is no longer supported.
this in describe functions is no longer a Suite object.
Multiple calls to an asynchronous function's done callback are treated as errors.
Any argument other than undefined passed to a done callback is treated as an error.
Empty suites are treated as errors.
The individual configuration property getter and setter was removed; use Env#configuration and Env#configure instead.
The configuration property was removed; use stopOnSpecFailure instead.
Throws when its argument is not a Date; previous versions ignored non-Date arguments.
The current time value no longer decreases when tick is called from a setTimeout or setInterval callback.
No longer included because all supported environments provide a JSON parser.
Boot files in this directory are no longer included in the NPM package; use the boot files in lib/jasmine-core instead.
No longer available globally; use the instances passed to custom matcher factories.
The configuration property was removed; use stopSpecOnExpectationFailure instead.
No longer available globally; use the instances passed to custom matcher factories and to jasmineToString.
The Promise configuration property was removed. Jasmine can consume non-native promises but always uses the global Promise to create promises.
Internet Explorer, PhantomJS, Safari 8–13, Firefox 68 and 78, Node 10 and 12.0–12.16, Python, Ruby, and Bower are no longer supported.
Set members are compared using deep equality rather than ===, which may cause previously passing .not.toContain() expectations to fail.
New APIs and options 2
Adds a log entry during spec execution; if the spec fails, entries are reported in the specDone reporter event.
Jasmine can optionally be used without creating globals in Node.js.
Behavior and default changes 4
afterAll functions run after a failure even when stopOnSpecFailure is set.
Custom spy strategies are inherited from parent suites like other runnable resources.
Can now be called from beforeEach functions.
Supports custom equality testers.
Fixes and other changes 3
Includes top suite failures in the reported failure count.
Stack trace filtering on Safari 15 was fixed.
Duplicate messages were removed from errors, including matcher failures.