Skip to content

Commit 29a255b

Browse files
authored
prepare for v6.3.0 (#1168)
1 parent 000a6d1 commit 29a255b

File tree

4 files changed

+106
-25
lines changed

4 files changed

+106
-25
lines changed

README.md

+16
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ You can see the full [features](#features) and learn more details in the [How-To
2626
Happy testing!
2727

2828
## Releases
29+
- **Next** ([v6.3.0-pre-release](https://github.com/jest-community/vscode-jest/releases/tag/v6.3.0)): [release note](release-notes/release-note-v6.md#v63-pre-release)
2930
- **Current** ([v6.2.5](https://github.com/jest-community/vscode-jest/releases/tag/v6.2.5)): [release note](release-notes/release-note-v6.md#v625)
3031
- **Previous** ([v5.2.3](https://github.com/jest-community/vscode-jest/releases/tag/v5.2.3)): [release note](release-notes/release-note-v5.x.md#v523)
3132

@@ -174,6 +175,20 @@ The extension will try to generate a debug config, but if you encounter a debug
174175

175176
### How to use code coverage?
176177

178+
---
179+
180+
**v6.3.0 and up**
181+
182+
Test coverage can also be run interactively via the TestExplorer tree view, by clicking the "Run with Coverage" button.
183+
184+
<img src="images/test-coverage-explorer.png" alt="test-coverage-explorer" width="800"/>
185+
186+
187+
**v6.2.5 and below**
188+
189+
> [!Note]
190+
> Note: The following describes the original test coverage feature, which remains available as of 2024/08/13. With the introduction of the new, more intuitive integration in v6.3.0, we plan to deprecate this feature soon. If you have any concerns or would like to share your thoughts on this change, please let us know.
191+
177192
Code coverage can be triggered via
178193
1. change [runMode](#runmode) config via [chooser](#runmode-chooser) or settings.
179194
2. [Command Palette](https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette), select command like **Jest: Toggle Coverage** to activate or deactivate code coverage (see full list in [commands](#commands).
@@ -269,6 +284,7 @@ Users can use the following settings to tailor the extension for their environme
269284
useDashedArgs| Determine if to use dashed arguments for jest processes |undefined|`"jest.useDashedArgs":true`| >= v6.0.0
270285
|[parserPluginOptions](#parserpluginoptions)|Configure babel parser plugins|null|`"jest.parserPluginOptions": {decorators: 'legacy'}`|
271286
|[virtualFolders](#virtual-folders)|defines multiple jest runs in a given vscode workspace folder|undefined|`"jest.virtualFolders": "[{"name": "front-end", "rootPath': "packages/front-end"}, {"name": "back-end", "rootPath': "packages/back-end"} ]"`| >= v6.0.0
287+
|useJest30|instruct the extension to use jest 30 command line syntax|undefined|`"jest.useJest30": true`| >= v6.3.0
272288
|**UX**|
273289
|[outputConfig](#outputconfig) 💼|Controls test output experience across the whole workspace.|undefined|`"jest.outputConfig": "neutral"` or `"jest.outputConfig": {"revealOn": "run", "revealWithFocus": "terminal", "clearOnRun": 'terminal"`| >= v6.1.0
274290
|[runMode](#runmode)|Controls most test UX, including when tests should be run, output management, etc|undefined|`"jest.runMode": "watch"` or `"jest.runMode": "on-demand"` or `"jest.runMode": {"type": "on-demand", "deferred": true}`| >= v6.1.0

images/test-coverage-explorer.png

397 KB
Loading

release-notes/release-note-v6.md

+89-25
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,25 @@
33
Release Notes <!-- omit in toc -->
44
---
55

6-
- [v6.2.5](#v625)
7-
- [v6.2.4](#v624)
8-
- [v6.2.3](#v623)
9-
- [v6.2.2](#v622)
10-
- [CHANGELOG](#changelog)
11-
- [v6.2.1](#v621)
12-
- [CHANGELOG](#changelog-1)
13-
- [v6.2.0](#v620)
14-
- [New Features Summary](#new-features-summary)
15-
- [Bug Fixes and Technical Debt Reduction](#bug-fixes-and-technical-debt-reduction)
16-
- [Breaking Changes](#breaking-changes)
17-
- [CHANGELOG](#changelog-2)
6+
- [v6.3 (pre-release)](#v63-pre-release)
7+
- [Features](#features)
8+
- [Bug Fixes](#bug-fixes)
9+
- [v6.3 (pre-release)](#v63-pre-release-1)
10+
- [Features](#features-1)
11+
- [Bug Fixes](#bug-fixes-1)
12+
- [v6.2](#v62)
13+
- [v6.2.5](#v625)
14+
- [v6.2.4](#v624)
15+
- [v6.2.3](#v623)
16+
- [v6.2.2](#v622)
17+
- [CHANGELOG](#changelog)
18+
- [v6.2.1](#v621)
19+
- [CHANGELOG](#changelog-1)
20+
- [v6.2.0](#v620)
21+
- [New Features Summary](#new-features-summary)
22+
- [Bug Fixes and Technical Debt Reduction](#bug-fixes-and-technical-debt-reduction)
23+
- [Breaking Changes](#breaking-changes)
24+
- [CHANGELOG](#changelog-2)
1825
- [v6.1 (pre-release)](#v61-pre-release)
1926
- [Main Features](#main-features)
2027
- [1. Enhanced Test Execution Control with "runMode"](#1-enhanced-test-execution-control-with-runmode)
@@ -25,7 +32,7 @@ Release Notes <!-- omit in toc -->
2532
- [2.1 "TEST RESULTS" Panel Integration](#21-test-results-panel-integration)
2633
- [2.2 Configuration and Examples](#22-configuration-and-examples)
2734
- [2.3 Deprecations and Migration](#23-deprecations-and-migration)
28-
- [Bug Fixes](#bug-fixes)
35+
- [Bug Fixes](#bug-fixes-2)
2936
- [Technical Debt](#technical-debt)
3037
- [v6.0 (pre-release)](#v60-pre-release)
3138
- [Main Features](#main-features-1)
@@ -38,7 +45,64 @@ Release Notes <!-- omit in toc -->
3845

3946
---
4047

41-
## v6.2.5
48+
## v6.3 (pre-release)
49+
50+
### Features
51+
52+
- **Support for Jest v30** (v30.0.0-alpha.6 and up).
53+
- The extension now automatically detects Jest v30 and switches to the new syntax, specifically `TestPathPatterns`. This behavior can be controlled via a new setting, `jest.useJest30`, which, when enabled, instructs the extension to immediately use the Jest v30 syntax. ([#1153](https://github.com/jest-community/vscode-jest/pull/1153) - @connectdotz)
54+
55+
- **Integration with VS Code's Test Coverage API and UI**.
56+
- The extension now provides test coverage via the native VS Code API, enabling interactive coverage runs and displaying results in both the editor and the Test Explorer Coverage panel. ([#1151](https://github.com/jest-community/vscode-jest/pull/1151) - @connectdotz)
57+
58+
![test-coverage-explorer](../images/test-coverage-explorer.png)
59+
60+
- **Note**: The original coverage feature in the extension will remain functional for now. However, we plan to deprecate it in the near future. If you have any concerns on this change, please open an issue to let us know.
61+
62+
### Bug Fixes
63+
64+
- Correctly incorporate `jest.nodeEnv` into the auto-generated debug configuration. ([#1167](https://github.com/jest-community/vscode-jest/pull/1167) - @connectdotz)
65+
66+
- Resolved an issue where tests sometimes failed to reflect the correct status when the test suite couldn't run (e.g., due to compile errors). ([#1165](https://github.com/jest-community/vscode-jest/pull/1165) - @connectdotz)
67+
68+
- Fixed broken links in the setup-wizard documentation. ([#1154](https://github.com/jest-community/vscode-jest/pull/1154) - @pierluigigiancola)
69+
70+
**CHANGELOG**
71+
72+
- [v6.3.0](https://github.com/jest-community/vscode-jest/releases/tag/v6.3.0)
73+
74+
---
75+
76+
## v6.3 (pre-release)
77+
78+
### Features
79+
80+
- Supports jest v30 (v30.0.0-alpha.6 and up).
81+
- The extension will auto detect jest 30 and switch to the new syntax (namely `TestPathPatterns`). This behavior can also be controlled by a new setting `jest.useJest30`, when set will instruct the extension to use jest30 syntax immediately. ([#1153](https://github.com/jest-community/vscode-jest/pull/1153) - @connectdotz)
82+
83+
- Supports vscode test coverage API and UI.
84+
- The extension will now also provide test coverage information via the native vscode test coverage API. This will enable vscode to run test with coverage via test explorer tree and show test coverage information in the editor and the test explorer coverage panel. ([#1151](https://github.com/jest-community/vscode-jest/pull/1151) - @connectdotz)
85+
86+
![test-coverage-explorer](../images/test-coverage-explorer.png)
87+
88+
- **Note**: The existing coverage feature in the extension will continue to work for now. However, we plan to deprecate the existing coverage in the near future. If you prefer the existing coverage, please open an issue to let us know.
89+
90+
### Bug Fixes
91+
92+
- Correctly incorporate the `jest.nodeEnv` to auto generated debug config. ([#1167](https://github.com/jest-community/vscode-jest/pull/1167) - @connectdotz)
93+
94+
- Fixed an issue where the test file failed to run (compile error for example) but the tests within the file failed to reflect the correct status. ([#1165](https://github.com/jest-community/vscode-jest/pull/1165) - @connectdotz)
95+
96+
- Fixed links in setup-wizard docs. ([#1154](https://github.com/jest-community/vscode-jest/pull/1154) - @pierluigigiancola)
97+
98+
**CHANGELOG**
99+
100+
- [v6.3.0](https://github.com/jest-community/vscode-jest/releases/tag/v6.3.0)
101+
102+
---
103+
104+
## v6.2
105+
### v6.2.5
42106

43107
**Bug Fixes**
44108

@@ -50,7 +114,7 @@ Release Notes <!-- omit in toc -->
50114

51115
---
52116

53-
## v6.2.4
117+
### v6.2.4
54118

55119
**Enhancements**
56120

@@ -67,7 +131,7 @@ Release Notes <!-- omit in toc -->
67131

68132
---
69133

70-
## v6.2.3
134+
### v6.2.3
71135

72136
This release is a patch release with the following changes:
73137

@@ -82,7 +146,7 @@ This release is a patch release with the following changes:
82146

83147
---
84148

85-
## v6.2.2
149+
### v6.2.2
86150

87151
This release is a patch release with the following changes:
88152

@@ -108,38 +172,38 @@ This release is a patch release with the following changes:
108172
- Minor docs updates for the migration guides. ([#1116](https://github.com/jest-community/vscode-jest/pull/1116) - @pmcelhaney)
109173
- Minor update for the output config info in README and release notes. ([#1119](https://github.com/jest-community/vscode-jest/pull/1119) - @connectdotz)
110174

111-
### CHANGELOG
175+
#### CHANGELOG
112176

113177
- [v6.2.2](https://github.com/jest-community/vscode-jest/releases/tag/v6.2.2)
114178

115179
---
116180

117-
## v6.2.1
181+
### v6.2.1
118182
This release is a patch release with the following bug fix:
119183

120184
- Fixed test run errors due to incorrect sub folder paths from the test Explorer panel. ([#1114](https://github.com/jest-community/vscode-jest/pull/1114) - @connectdotz)
121185

122-
### CHANGELOG
186+
#### CHANGELOG
123187
- [v6.2.1](https://github.com/jest-community/vscode-jest/releases/tag/v6.2.1)
124188

125189
---
126190

127-
## v6.2.0
191+
### v6.2.0
128192
This version is a rollup of pre-releases [v6.0](#v60-pre-release) through [v6.1](#v61-pre-release), which implemented a few long requested features, such as better monorepo project support, more intuitive ways to defer and resume testing, and showing accurate test results in TEST RESULT panel.
129193

130194
![v6.2.0-intro](../images/v6.2.0-intro.png)
131195

132-
### New Features Summary
196+
#### New Features Summary
133197
- **Virtual Folders**: New in v6.0.0, [jest.virtualFolders](https://github.com/jest-community/vscode-jest#virtualfolders) now supports monorepos for single-root workspaces and multiple Jest configurations in the same folder — long-awaited capabilities for developers dealing with complex project setups. [Details](#1-virtual-folders)
134198
- **Integration with VSCode "TEST RESULTS" Panel**: Introduced in v6.1.0, the [jest.outputConfig](https://github.com/jest-community/vscode-jest#outputconfig) setting enables the display of test results directly in the VSCode "TEST RESULTS" panel and consolidates various output settings. [Details](#2-support-vscode-test-results-panel-with-jestoutputconfig) (:warning: **Breaking Change**)
135199
- **Replace "autoRun" with "runMode"**: Debuting in v6.1.0, [jest.runMode](https://github.com/jest-community/vscode-jest#runmode) replaces and expands upon [jest.autoRun](https://github.com/jest-community/vscode-jest#autorun) with options like `'deferred'` mode, ideal for large projects seeking just-in-time test execution. It also consolidates related settings for a cleaner configuration experience. [Details](#1-enhanced-test-execution-control-with-runmode) (:warning: **Breaking Change**)
136200
- **Support for Spawning Jest with Dashed Arguments**: Available from v6.0.0, the new [jest.useDashedArgs](https://github.com/jest-community/vscode-jest?tab=readme-ov-file#settings) setting allows the extension to spawn Jest processes with dashed arguments, required by some frameworks such as Angular. [Details](#2-support-spawning-jest-with-dashed-arguments)
137201
- **Control Extension Activation within Each Folder:** Introduced in v6.0.0, the [jest.enable](https://github.com/jest-community/vscode-jest?tab=readme-ov-file#settings) setting allows granular control over the Jest extension's activation on a per-folder basis in VS Code workspaces. This enhancement is beneficial for developers working in multi-root workspaces or projects with mixed languages. [Details](#3-control-extension-activation-within-each-folder)
138202

139-
### Bug Fixes and Technical Debt Reduction
203+
#### Bug Fixes and Technical Debt Reduction
140204
- Please refer to the pre-release notes for a comprehensive list.
141205

142-
### Breaking Changes
206+
#### Breaking Changes
143207
- The following settings have been consolidated into `runMode` and `outputConfig` and will be removed in the future release:
144208
- `"jest.autoRun"`
145209
- `"jest.showCoverageOnLoad"`
@@ -151,7 +215,7 @@ This version is a rollup of pre-releases [v6.0](#v60-pre-release) through [v6.1]
151215
- [RunMode Migration Guide](https://github.com/jest-community/vscode-jest#runmode-migration)
152216
- [OutputConfig Migration Guide](https://github.com/jest-community/vscode-jest#outputconfig-migration)
153217

154-
### CHANGELOG
218+
#### CHANGELOG
155219
- [v6.2.0](https://github.com/jest-community/vscode-jest/releases/tag/v6.2.0)
156220

157221
---

src/extension-manager.ts

+1
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,7 @@ export class ExtensionManager {
531531

532532
const ReleaseNoteBase = 'https://github.com/jest-community/vscode-jest/blob/master/release-notes';
533533
const ReleaseNotes: Record<string, string> = {
534+
'6.3.0': `${ReleaseNoteBase}/release-note-v6.md#v63-pre-release`,
534535
'6.2.5': `${ReleaseNoteBase}/release-note-v6.md#v625`,
535536
'6.2.4': `${ReleaseNoteBase}/release-note-v6.md#v624`,
536537
'6.2.3': `${ReleaseNoteBase}/release-note-v6.md#v623`,

0 commit comments

Comments
 (0)