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

Module: jasmine-core

Note: Only available on Node.

In addition to the members documented here, this module's exports include all globals.

Methods

(static) installGlobals(destopt)

Copies Jasmine globals (jasmine, describe, it, etc) to the specified object or to globalThis.

Parameters:
Name Type Attributes Description
dest object <optional>

The object to copy globals to.

(static) reset()

Resets all of jasmine-core's state, including removing specs, suites, and reporters, and resetting configuration to the default.

(static) version()

Returns the jasmine-core version.