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

Interface: Configuration

Configuration

This represents the available options to configure Jasmine. Options that are not provided will use their default values

Members

failFast :Boolean

Whether to stop execution of the suite after the first spec failure

Type:
  • Boolean
Default Value:
  • false

hideDisabled :Boolean

Whether or not reporters should hide disabled specs from their output. Currently only supported by Jasmine's HTMLReporter

Type:
  • Boolean
Default Value:
  • false

oneFailurePerSpec :Boolean

Whether to cause specs to only have one expectation failure.

Type:
  • Boolean
Default Value:
  • false

random :Boolean

Whether to randomize spec execution order

Type:
  • Boolean
Default Value:
  • true

seed :function

Seed to use as the basis of randomization. Null causes the seed to be determined randomly at the start of execution.

Type:
  • function
Default Value:
  • null

specFilter :function

Function to use to filter specs

Type:
  • function
Default Value:
  • true