Skip to content

TestResult

Defined in: packages/core/src/capture/tests.ts:16

What a build keeps of one .test() entry (JSON in builds.test_results).

durationMs: number

Defined in: packages/core/src/capture/tests.ts:28


optional error?: string

Defined in: packages/core/src/capture/tests.ts:27

The failure message of a failed test.


id: string

Defined in: packages/core/src/capture/tests.ts:18

The test entry’s id (<story id>:<test name slug>).


name: string

Defined in: packages/core/src/capture/tests.ts:22

The test’s own name, as written in story.test("...").


parentId: string | null

Defined in: packages/core/src/capture/tests.ts:24

The story the test is written under.


status: "failed" | "passed"

Defined in: packages/core/src/capture/tests.ts:25


title: string

Defined in: packages/core/src/capture/tests.ts:20

Story file title (the component path), as on its index entry.