Skip to content

persistCapture

persistCapture(input, renderFailedStoryIds?, flakyFailedStoryIds?, a11yFailedStoryIds?): Promise<void>

Defined in: packages/core/src/capture/pipeline.ts:49

Persist a completed capture run: write screenshots, diff against the branch baseline, create snapshots, and finalize the build.

Rendering is performed by a pure CaptureRunner; this function owns only storage writes and record keeping, so it can run against any renderer.

CaptureContext

ReadonlySet<string> = ...

Story ids that the renderer could not capture (blocking failures). They force the build to failed.

ReadonlySet<string> = ...

Story ids that failed but are marked flaky (non-blocking). They are logged as warnings and do not block the build.

ReadonlySet<string> = ...

Promise<void>