# testing.RecordedInvocation

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

```ts
type RecordedInvocation = RecordedAnswer | RecordedFailure
```

One entry: either an answer or a failure, never both.

A failure is written down rather than dropped because the queue is
positional. An omitted failure does not merely lose itself — it hands the
next call the answer belonging to the one after it, so a recorded failure
replays as a pass and everything past it is off by one.
