-
-
Notifications
You must be signed in to change notification settings - Fork 619
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
initial useKeypress #147
initial useKeypress #147
Conversation
This needs to handle the case if raw mode is already enabled when this hook is used, it should not be disabled when this hook ends. |
That's actually going to be handled by |
So I got stuck on my test - it would be cool if ava could allow you to get a handle to stdin/stdout or the subprocess when running tests so we can simulate keypresses etc. |
See https://yarnpkg.com/en/package/node-pty on how you can write to stdin of the process created by |
Hey @jedahan, do you have time to finish this PR? Totally ok if not ;) |
Unfortunately I cannot get |
Try using Node.js v10.x. |
@jedahan Did you manage to get it to npm install? |
|
Working on fixing the test now |
I'm rebasing |
I think I've made all the requested changes |
Hey @jedahan, I've tried running |
I digged deeper and was able to fix it by replacing I also decided to switch from using I'll open another PR, which includes your changes and fixes these things. I will make sure to mention you, of course. Thank you for all your work! |
first draft of #138
todo
- [ ] write documentation