# testing.RecordedInvocation

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

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.
