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.
Parameters
Section titled “Parameters”renderFailedStoryIds?
Section titled “renderFailedStoryIds?”ReadonlySet<string> = ...
Story ids that the renderer could not capture
(blocking failures). They force the build to failed.
flakyFailedStoryIds?
Section titled “flakyFailedStoryIds?”ReadonlySet<string> = ...
Story ids that failed but are marked flaky (non-blocking). They are logged as warnings and do not block the build.
a11yFailedStoryIds?
Section titled “a11yFailedStoryIds?”ReadonlySet<string> = ...
Returns
Section titled “Returns”Promise<void>