jest-community / vscode-jest

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

supports test-results panel and refactor output settings #1087

Closed connectdotz closed 1 year ago

connectdotz commented 1 year ago

This PR primarily focuses on enhancing support for the "TEST RESULTS" panel, with adjustments made to better align with VS Code's testing framework for output management.

Key Changes

  1. Added a new settings "jest.outputConfig": Consolidate all output settings into this workspace level setting (as the TEST RESULTS panel's "testing.openTesting" setting is), including moving the "revealOutput" from "jest.runMode"
  2. Adding a new output reveal type "error" to reveal output only when tests have errors.
  3. Refactor "JestTestRun" to ensure 1 TestRun per process. Introduced JIT run creation and delayed-close to make using runs easier for consumers.
  4. Refactor a few "helper" classes by splitting them into separate files, as they are becoming kitchen sinks...
  5. upgrade dependencies.

Related Issues

resolve #1051, resolve #1071, resolve #1073, resolve #1074, resolve #1076, resolve #1060

coveralls commented 1 year ago

Pull Request Test Coverage Report for Build 6723670100


Totals Coverage Status
Change from base Build 6605359998: -0.008%
Covered Lines: 3924
Relevant Lines: 3938

💛 - Coveralls