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

Interface: Spec

Spec

Since:
  • 2.0.0
See:

Members

(readonly) description :string

The description passed to the it that created this spec.

Type:
  • string
Since:
  • 2.0.0

(readonly) filename :string

The name of the file the spec was defined in. Note: The value may be incorrect if zone.js is installed or it/fit/xit have been replaced with versions that don't maintain the same call stack height as the originals. You can fix that by setting Configuration#extraItStackFrames.

Type:
  • string
Since:
  • 5.13.0

(readonly) id :string

The unique ID of this spec.

Type:
  • string
Since:
  • 2.0.0

Methods

getFullName() → {string}

The full description including all ancestors of this spec.

Since:
  • 2.0.0
Returns:
Type
string

getPath() → {Array.<string>}

The full path of the spec, as an array of names.

Since:
  • 5.7.0
Returns:
Type
Array.<string>