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

Interface: JasmineOptions

JasmineOptions

Options for the Jasmine constructor

Members

globals :boolean|undefined

Whether to create the globals (describe, it, etc) that make up Jasmine's spec-writing interface. If it is set to false, the spec-writing interface can be accessed via jasmine-core's noGlobals method, e.g.:

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

Type:
  • boolean | undefined
Default Value:
  • true

projectBaseDir :string|undefined

The path to the project's base directory. This can be absolute or relative to the current working directory. If it isn't specified, the current working directory will be used.

Type:
  • string | undefined