SBoudrias / Inquirer.js

A collection of common interactive command line user interfaces.
MIT License
20.29k stars 1.3k forks source link

Feat: @inquirer/testing better handling of asynchronous action #1528

Open SBoudrias opened 2 months ago

SBoudrias commented 2 months ago

There's many tests within the core test suite relying on await Promise.resolve(). This is far from ideal since new async actions require more wait code; making it not super robust to refactors and code change.

I'd like to find a better way to hook into the library to detect when the code is waiting.