Documentation Home
This page is for an older version of Jasmine (5.2).
The current stable version of Jasmine is: 5.5. You can also look at the docs for the next release: Edge

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. If boot is called multiple times, the same object is returned every time unless true is passed.

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

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

Returns:
Type
jasmine

(static) noGlobals(reinitializeopt)

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 unless true is passed.

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

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

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