Open m-a-r-c-e-l-i-n-o opened 8 years ago
seems like this is a race condition that I did not prepare for. If you could come up with a self-contained unit tests, that would be great to merge in and fix.
@bahmutov Thanks for the response, are you suggesting a self-contained unit test involving Inquirer
?
yeah, if possible, otherwise it is hard to debug this
The pr is ready to fire, but I just realized that the issue is already present in your checkbox-spec.js
spec. Just upgrade your inquirer
dependency to v1 and it'll surface. Let me know if you want me to pr either way.
Running the code below sometimes works and sometimes doesn't.
It seems like
bdd-stdin
doesn't quite know when the question shows up. Not sure if it's an interference of some sort with Inquire.js or a bug, but changing https://github.com/bahmutov/bdd-stdin/blob/master/index.js#L31 to something like500
makes everything okay (at least as far as I have witnessed). Any suggestions on how this could be sustainably resolved?