---
url: /api/kiln/test/variables/replay.md
---
[Kiln API](../../../index.md) / [kiln/test](../index.md) / 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

| Parameter | Type |
| ------ | ------ |
| `name` | `string` |
| `recording` | `string` | [`Recording`](../../interfaces/Recording.md) |
| `fn` | `ReplayBody` |
| `options` | [`ReplayOptions`](../interfaces/ReplayOptions.md) |

#### Returns

`void`

### skip

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

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `name` | `string` |
| `recording` | `string` | [`Recording`](../../interfaces/Recording.md) |
| `fn` | `ReplayBody` |
| `options` | [`ReplayOptions`](../interfaces/ReplayOptions.md) |

#### Returns

`void`
