Add configuration option preserveEditorFocus to preserve focus on your editor when running specs.
Adding the config:
{
"jestRunner.preserveEditorFocus": true
}
...will preserve focus on your editor, instead of focusing the terminal, when a Jest test run is started. This is a helpful option available in test runners for other languages (such as the very popular Code Runner extension), and is great for vim-like workflows.
Preserving focus is accomplished simply by passing the config value to the preserveFocus? argument of the Terminal.show() method, with a default of false.
I did not see a relevant place to add a spec, but am happy to provide one.
Add configuration option
preserveEditorFocus
to preserve focus on your editor when running specs.Adding the config:
...will preserve focus on your editor, instead of focusing the terminal, when a Jest test run is started. This is a helpful option available in test runners for other languages (such as the very popular Code Runner extension), and is great for vim-like workflows.
Preserving focus is accomplished simply by passing the config value to the
preserveFocus?
argument of theTerminal
.show()
method, with a default offalse
.I did not see a relevant place to add a spec, but am happy to provide one.
Closes https://github.com/firsttris/vscode-jest-runner/issues/97