Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

function libtmux-ts latest

recordInvocations

Wrap an engine so every invocation it runs is written down.

Source and package
Qualified name
recordInvocations
Module
testing
Package
libtmux
Source
packages/libtmux/src/testing.ts
function recordInvocations( inner: TmuxEngine = new NodeSpawnTransport(), ): { readonly engine: TmuxEngine; readonly recording: () => TmuxRecording; }

Description#

The wrapper is transparent: it answers exactly what the inner engine answered, so a suite can record while it runs against real tmux and keep asserting on the real results. Called with nothing it wraps the engine a Server builds for itself, which is what recording against a local tmux means and saves reaching for an internal class to say so.

Parameters
Esc

Type to search.

Reference previewOpen reference