Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

testing.recordInvocations

TypeScript
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript
  • Rust Unavailable
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
testing
Package
libtmux
Source
packages/libtmux/src/testing.ts
recordInvocations ( inner : : TmuxEngine = new NodeSpawnTransport() ) → { readonly engine: TmuxEngine; /** The recording so far, safe to serialize at any point. */ readonly recording: () => TmuxRecording; }
function [source]
function [source]
recordInvocations

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

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.

0 declared, 0 inherited

Esc

Type to search.