firsttris / vscode-jest-runner

Simple way to run or debug one or more tests from context menu, codelens or command plalette
https://marketplace.visualstudio.com/items?itemName=firsttris.vscode-jest-runner
MIT License
264 stars 125 forks source link

Issue with VSCode integrated terminal #257

Open iFederx opened 2 years ago

iFederx commented 2 years ago

HI, I have an issue, maybe is my fault.

I run VSCode on Windows with GitBash terminal.

When I click on "Run" on a test, sometimes the command in the terminal is splitted and reorded in a wrong way

Example right way: image

Example wrong way: image

wedgberto commented 2 years ago

Closing any existing jest terminals before (re)running tests works for me, but is inconvenient.

Enabling jestrunner.preserveEditorFocus also seems to improve things.

I could not find anything in the code that looks responsible for this behaviour so suspect it could be internal to vscode's terminal.sendText(), or maybe it's because I have bash as my default integrated terminal?