Skip to content

Kiln API / kiln/test / replay

Variable: replay ​

ts
const replay: (name, recording, fn, options) => void & object;

A test that replays a recorded session on a fresh app, then runs the body. If the session ended in an error, the replay throws it at the same frame, so the test fails until the bug is fixed.

Type Declaration ​

only ​

ts
only: (name, recording, fn, options) => void;

Parameters ​

ParameterType
namestring
recordingstring | Recording
fnReplayBody
optionsReplayOptions

Returns ​

void

skip ​

ts
skip: (name, recording, fn, options) => void;

Parameters ​

ParameterType
namestring
recordingstring | Recording
fnReplayBody
optionsReplayOptions

Returns ​

void