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
265 stars 124 forks source link

Clear terminal before running tests #161

Closed Alex-Dinu closed 3 years ago

Alex-Dinu commented 3 years ago

Is there a way to clear the terminal and then run the tests? For example, how can I run [clear] and then the test command as usual.

I tried adding [clear &&] as a Jest command, but that did not work.

Thanks

firsttris commented 3 years ago

acutally we are already clearing the terminal before executing the jest command.

https://github.com/firsttris/vscode-jest-runner/blob/master/src/jestRunner.ts#L200

Alex-Dinu commented 3 years ago

It must be my version then. I'm running VS Code 1.54.3 and Jest Runner 0.4.31. Unfortunately I cannot upgrade VS Code at this time.

Thank you for the quick response.