Skip to content

Commit

Permalink
Merge d34cf9c into 0046735
Browse files Browse the repository at this point in the history
  • Loading branch information
connectdotz committed Apr 17, 2022
2 parents 0046735 + d34cf9c commit 613bdc9
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 34 deletions.
59 changes: 26 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,27 @@

---
## Release Notes<!-- omit in toc -->
### Pre-Release [v4.3.1](https://github.com/jest-community/vscode-jest/releases/tag/v4.3.1) <!-- omit in toc -->
<details>

<summary>interactive run extended to watch mode</summary>
### Latest: [v4.4.0](https://github.com/jest-community/vscode-jest/releases/tag/v4.4.0) <!-- omit in toc -->

Users in watch mode can now run any test/folder/workspace interactively just like with non-watch mode.
Interactive run has been extended to watch mode in v4.4.0. Users in watch mode can now run any test/folder/workspace interactively just like with non-watch mode.

![image](images/interactive-watch-mode.png)

</details>
Other features:

<details>

<summary>more control with debug config v2</summary>
- debug config v2

<details>

<summary>expand for detail</summary>

This release introduced debug config v2, which changed how we inject jest runtime information, such as test file and name, to the debug config. Replacing the "behind-the-scene-injection" with a "variable-substitution" model, so no more hidden operations and surprises, the extension will only substitute the jest specific variables present in the config.
This release introduced debug config v2, which changed how we inject jest runtime information, such as test file and name, to the debug config. Replacing the "behind-the-scene-injection" with a "variable-substitution" model, so no more hidden operations and surprises, the extension will only substitute the jest specific variables present in the config.

A default jest debug config in v2 will look like this:
A default jest debug config in v2 will look like this:

```json
{
```json
{
"type": "node",
"name": "vscode-jest-tests.v2",
"request": "launch",
Expand All @@ -44,41 +44,30 @@ A default jest debug config in v2 will look like this:
"windows": {
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
}
}
```
Jest like vscode [variables](https://code.visualstudio.com/docs/editor/variables-reference), the `"${jest.testNamePattern}"` and `"${jest.testFile}"` are jest specific variables and, if present, will be substituted by the extension upon debugging. Note the config name change: `"vscode-jest-tests.v2"`, which signal the extension to use the substitution mode.

This change is backward compatible. All existing config (with `"vscode-jest-tests"`) will continue to function as before.

More info see [Debug Config v2](#debug-config-v2)
}
```
Jest like vscode [variables](https://code.visualstudio.com/docs/editor/variables-reference), the `"${jest.testNamePattern}"` and `"${jest.testFile}"` are jest specific variables and, if present, will be substituted by the extension upon debugging. Note the config name change: `"vscode-jest-tests.v2"`, which signal the extension to use the substitution mode.

</details>
This change is backward compatible. All existing config (with `"vscode-jest-tests"`) will continue to function as before.

<details>
More info see [Debug Config v2](#debug-config-v2)

<summary>vue support and more</summary>
</details>

Other features:
- supports `vue` file testing
- enhanced test output discovery by automatically opening TestExplorer terminal upon launch.
- enhance run/debug tests with quotes in the name.
- update documentations and a few bug fixes.

More details see [v4.3.1 release](https://github.com/jest-community/vscode-jest/releases/tag/v4.3.1)

</details>

#### installation <!-- omit in toc -->
To try the pre-release version, see vscode [pre-release](https://code.visualstudio.com/updates/v1_63#_pre-release-extensions) instruction.

<details>
<summary>screenshot</summary>
More details see [v4.4.0 release](https://github.com/jest-community/vscode-jest/releases/tag/v4.4.0)

![image](images/pre-release.png)
### Previous Releases <!-- omit in toc -->

</details>
<details>

### Stable: [v4.2.1](https://github.com/jest-community/vscode-jest/releases/tag/v4.2.1) <!-- omit in toc -->
<summary>v4.2.1</summary>

Test menu is now accessible for all tests, regardless of run mode. If cursor jumping when editing tests is a bit annoying, you can now alternatively disable the DebugCodeLens and use "Debug Test" from the test menu:

Expand All @@ -90,6 +79,10 @@ For users struggled with the jest process environment, this release added 2 new

Also fixed inline error pop-up in vscode 1.61, and enhanced snapshot language support.

more info see [v4.2.1 release](https://github.com/jest-community/vscode-jest/releases/tag/v4.2.1)

</details>

<details>
<summary>v4.1 with Test Explorer</summary>

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-jest",
"displayName": "Jest",
"description": "Use Facebook's Jest With Pleasure.",
"version": "4.3.1",
"version": "4.4.0",
"publisher": "Orta",
"engines": {
"vscode": "^1.63.0"
Expand Down

0 comments on commit 613bdc9

Please sign in to comment.