elm-explorations / test

Write unit and fuzz tests for Elm code.
https://package.elm-lang.org/packages/elm-explorations/test/latest
BSD 3-Clause "New" or "Revised" License
237 stars 39 forks source link

Some terminal behavior broken after running `elm-test` #132

Closed drewolson closed 4 years ago

drewolson commented 4 years ago

I've noticed some terminal behavior is broken after running the elm-test command. The most obvious failure is the ctrl+p command to scroll through my command history. I've attached a gif of me running a echo "hello" command and then using ctrl+p to run it again. After this works, I run elm-test and attempt to use ctrl+p again. It's now broken until I issue a ctrl+c command.

Please let me know if I can provide any more information.

elm-test

drewolson commented 4 years ago

~A quick update -- as far as I can tell, this only happens when I am inside of a tmux session.~

Scratch that, I just saw the same behavior outside of tmux. I'm seeing this on both mac and linux.

drathier commented 4 years ago

On the first new bash prompt after running elm-test,ctrl+r doesn't work and arrow keys just print e.g. ^[[A for me on mac. Pressing return or ctrl+c once makes things go back to normal again.

This is most likely an issue with https://github.com/rtfeldman/node-test-runner and not with this library, though.

drewolson commented 4 years ago

Thanks @drathier. I've opened an issue on node-test-runner and I'll go ahead and close this one.