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

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