Documentation Home
This page is for an older version of Jasmine (4.0).
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.

Members

(static) boot :function

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

Type:
  • function

(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.

Do not call boot() if you also call noGlobals().

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