deno_std
deno_std copied to clipboard
Need a way to simulate terminal interaction in test cases
context: https://github.com/denoland/deno_std/pull/3777
We use https://crates.io/crates/pty to simulate terminal in Deno CLI repo. We need an equivalent in this repo to test promptSecret.
We might first need to add pty support to Deno https://github.com/denoland/deno/issues/3994 if we want to write such test in Deno.