cli-testing

👋 Introduction

Test helpers for Ink CLIs — frame-history rendering and isolated subprocess runs

cli-testing gives Ink CLIs two ways to be tested against the two ways they go wrong: the component renders the wrong thing, or the binary behaves wrongly when actually run. renderFrames drives a component in process and reads its history of frames; runCli spawns the real binary in an environment that owns none of the developer's credentials or config.

What's here

On this page