TestResult
Defined in: packages/core/src/capture/tests.ts:16
What a build keeps of one .test() entry (JSON in builds.test_results).
Properties
Section titled “Properties”durationMs
Section titled “durationMs”durationMs:
number
Defined in: packages/core/src/capture/tests.ts:28
error?
Section titled “error?”
optionalerror?: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
Section titled “parentId”parentId:
string|null
Defined in: packages/core/src/capture/tests.ts:24
The story the test is written under.
status
Section titled “status”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.