jest-community / vscode-jest

The optimal flow for Jest based testing in VS Code
MIT License
2.83k stars 291 forks source link

Test result is revealed automatically on each save #1113

Closed javierfmarq closed 7 months ago

javierfmarq commented 7 months ago

Environment

  1. vscode-jest version: [6.2.0]
  2. node -v: [v18.12.1]
  3. npm -v or yarn --version: [fill]
  4. npm ls jest or npm ls react-scripts (if you haven’t ejected): [fill]
  5. your vscode-jest settings if customized:
    "jest.runMode": {
    "type": "on-save",
    "testFileOnly": true,
    "showInlineError": true
    },
    "jest.shell": { "path": "/bin/bash", "args": ["--login"] },
  6. Operating system: [Windows 11]

Prerequisite

Expected Behavior

I would like to run tests onSave but I don't want that the Test Results is open automatically. I like saving and checking the green indicators in gutter, and If something fails I open the output and check.

Something like this in an option:

  "jest.runMode": {
    "type": "on-save",
    "testFileOnly": true,
    "revealOutput": "off"
  },

Actual Behavior

Test results pop ups automatically each time I save.


The fastest (and the most fun) way to resolve the issue is to submit a pull-request yourself. If you are interested, feel free to check out the contribution guide, we look forward to seeing your PR...

connectdotz commented 7 months ago

This is the same issue as #1111, please see answer here