# testing.replayInvocations

- **Module:** testing
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-ts/blob/46cccfef2a546de55ce8b308249b8c76339089a0/packages/libtmux/src/testing.ts#L265
- **Page:** https://libtmux.org/en/ts/latest/reference/testing-replayinvocations/

```
function replayInvocations(
  recording: TmuxRecording,
): TmuxEngine
```

An engine that answers from a recording and never starts a process.

Repeated identical commands answer in the order they were recorded, because
two snapshots of a changing server are the same argv and different answers.
An argv the recording does not hold raises rather than inventing a result:
a test whose code took a path the recording never saw should say so, not
quietly pass against an empty server.

## Parameters

- `recording` (`TmuxRecording`)
