Testing terminal output is hard. Especially in cases that involve clearing screen partially while maintaining stable log output elsewhere on screen. With ansivision it's possible to simulate what output all the ansi codes would render visually in real terminal. No need to use heavy node-pty anymore.
A library to time-travel through terminal output and more. - 43081j/ansivision
Super happy to see a fairly niche library of mine being put to good use 😍
James
Thanks, it works! We can finally test Vitest's fast-updating SummaryReporter with this! I always thought it would be too difficult to simulate terminal's behaviour, but this library does it perfectly 💯
Also found one edge-case bug in Vitest while setting this up. 🙃