Skip to content

Interface: SuiteRecord ​

A describe block, with what is written on the describe itself. Inherited values are on the tests.

Properties ​

id ​

id: string


parentId ​

parentId: string | null

The describe around this one; null at the top level.


bodyHash ​

bodyHash: string | null

Hash of the describe's own code (hooks, test.use(), describe.configure(), helpers), ignoring whitespace, comments, and nested tests and describes; null when nothing is left.


relativeFilePath ​

relativeFilePath: string

Path from the project root, with / separators.


fileName ​

fileName: string


lineStart ​

lineStart: number


lineEnd ​

lineEnd: number


columnStart ​

columnStart: number

In UTF-16 code units.


columnEnd ​

columnEnd: number

In UTF-16 code units.


declaredAt ​

declaredAt: { relativeFilePath: string; lineStart: number; columnStart: number; } | null

Where a helper imported from another file writes the describe; the record's location is then the call that registers it. Null for code written in the scanned file.

Union Members ​

Type Literal ​

{ relativeFilePath: string; lineStart: number; columnStart: number; }

relativeFilePath ​

relativeFilePath: string

The helper's file, from the project root.

lineStart ​

lineStart: number

columnStart ​

columnStart: number

In UTF-16 code units.


null


title ​

title: string

As the runner shows it, tags included.


titleWithoutTags ​

titleWithoutTags: string

title with @tag words removed and spaces tidied.


hasDynamicTitle ​

hasDynamicTitle: boolean

The title could not be resolved to a fixed string, so title holds its source text.


path ​

path: string[]

Titles of the describes around this one and of this one, outermost first.


isSkipped ​

isSkipped: boolean


isFixme ​

isFixme: boolean

Playwright only.


isTodo ​

isTodo: boolean

Vitest only.


isExpectedToFail ​

isExpectedToFail: boolean

Tests in the describe are expected to fail, as with test.fail() in its body. Playwright only.


isOnly ​

isOnly: boolean


isConditional ​

isConditional: boolean

The state applies only when a condition holds.


condition ​

condition: string | null

Source text of the condition, shortened when long; null when unconditional.


reason ​

reason: string | null


hasDynamicReason ​

hasDynamicReason: boolean

The reason could not be worked out to a string, so reason holds its source text.


isParallel ​

isParallel: boolean


isSerial ​

isSerial: boolean

Playwright only.


isShuffled ​

isShuffled: boolean

Vitest only.


isParameterized ​

isParameterized: boolean

Declared with .each or .for.


caseIndex ​

caseIndex: number | null

With expandCases, which case of its table or pass of its loop the describe is, from 0, as Vitest's %# counts; null without expandCases, or when the describe isn't one of several.


tags ​

tags: string[]


annotations ​

annotations: object[]

type ​

type: string

description ​

description: string | null

lineStart ​

lineStart: number


locks ​

locks: string[]

Playwright only.


meta ​

meta: Record<string, MetaValue> | null

Vitest only; literal values only.


hooks ​

hooks: object

Hooks registered directly in the describe.

beforeAll ​

beforeAll: number

beforeEach ​

beforeEach: number

afterEach ​

afterEach: number

afterAll ​

afterAll: number

aroundEach ​

aroundEach: number

Vitest only.

aroundAll ​

aroundAll: number

Vitest only.


timeout ​

timeout: number | null

In milliseconds; null when nothing here sets it.


isSlow ​

isSlow: boolean

Playwright test.slow() written in the describe, which triples the timeout of its tests.


slowCondition ​

slowCondition: string | null

Source text of the test.slow() condition; null when unconditional or not slow.


retries ​

retries: number | null


retryDelay ​

retryDelay: number | null

Milliseconds between retries: Vitest's from the retry object (4.1), Jest's from waitBeforeRetry of jest.retryTimes() (30.0); null otherwise.


retryCondition ​

retryCondition: string | null

Vitest only: source text of the retry object's condition, a RegExp or a function.


repeats ​

repeats: number | null

Vitest only: how many times the runner runs each test again after the first run.

Documentation for test-inventory 0.12.2. Released under the MIT License.