Documentation Home
This page describes a pre-release version of Jasmine (6.0.0-alpha.0). There may be additional changes, including breaking changes, before the final 6.0.0 release.
The current stable version of Jasmine is 5.12.

Module: jasmine-core

Note: Only available on Node.

Methods

(static) boot(reinitializeopt) → {jasmine}

Boots a copy of Jasmine and returns an object as described in jasmine.

Parameters:
Name Type Attributes Default Description
reinitialize boolean <optional>
true

Whether to create a new copy of Jasmine if one already exists

Returns:
Type
jasmine

(static) noGlobals()

Boots a copy of Jasmine and returns an object containing the properties that would normally be added to the global object. If noGlobals is called multiple times, the same object is returned every time.

Example
const {describe, beforeEach, it, expect, jasmine} = require('jasmine-core').noGlobals();