---
url: /api/kiln/test/functions/replayApp.md
---
[Kiln API](../../../index.md) / [kiln/test](../index.md) / replayApp

# Function: replayApp()

```ts
function replayApp(
   recording, 
   options?, 
   root?
): Promise<ReplayContext>;
```

Builds a fresh app with the recording's seed and loop config and plays the recording on it
(all of it, or to `until`). The returned app is live: step it further or inspect it.

## Parameters

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

## Returns

`Promise`<[`ReplayContext`](../interfaces/ReplayContext.md)>
