diff --git a/README.md b/README.md index ea83980a..33c04dbf 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ You can see the full [features](#features) and learn more details in the [How-To Happy testing! ## Releases -- **Current** ([v6.4.3](https://github.com/jest-community/vscode-jest/releases/tag/v6.4.3)): [release note](release-notes/release-note-v6.md#v643) +- **Current** ([v6.4.4](https://github.com/jest-community/vscode-jest/releases/tag/v6.4.4)): [release note](release-notes/release-note-v6.md#v644) - **Previous** ([v6.4.0](https://github.com/jest-community/vscode-jest/releases/tag/v6.4.0)): [release note](release-notes/release-note-v6.md#v640) diff --git a/package.json b/package.json index 2cdcc6ad..70038d84 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "vscode-jest", "displayName": "Jest", "description": "Use Facebook's Jest With Pleasure.", - "version": "6.4.3", + "version": "6.4.4", "publisher": "Orta", "engines": { "vscode": "^1.88.1" diff --git a/release-notes/release-note-v6.md b/release-notes/release-note-v6.md index 1fa70cda..cc7169c3 100644 --- a/release-notes/release-note-v6.md +++ b/release-notes/release-note-v6.md @@ -3,6 +3,8 @@ Release Notes --- +- [v6.4.4](#v644) + - [Fixes](#fixes) - [v6.4.3](#v643) - [Bug Fixes](#bug-fixes) - [Other Changes](#other-changes) @@ -51,11 +53,23 @@ Release Notes - [2. Support spawning jest with dashed arguments](#2-support-spawning-jest-with-dashed-arguments) - [3. Control extension activation within each folder](#3-control-extension-activation-within-each-folder) - [4. Auto clear output upon test run](#4-auto-clear-output-upon-test-run) - - [Fixes](#fixes) + - [Fixes](#fixes-1) - [CHANGELOG](#changelog-3) --- +## v6.4.4 + +This release is a minor bug fix to auto switch jest30 settings. + +### Fixes +- Fixed jest 30 error detection so the system can auto switch to jest30 settings when the error is detected. ([#1254](https://github.com/jest-community/vscode-jest/pull/1254) by @connectdotz). +- fix syntax in README.md. ([#1243](https://github.com/jest-community/vscode-jest/pull/1243) by @qqii) + +**CHANGELOG** + +* [v6.4.4](https://github.com/jest-community/vscode-jest/releases/tag/v6.4.4) + ## v6.4.3 This release is a roll-up of the v6.4.1 and v6.4.2 pre-releases, consolidating several bug fixes. diff --git a/src/JestExt/process-listeners.ts b/src/JestExt/process-listeners.ts index 9367a698..131f442e 100644 --- a/src/JestExt/process-listeners.ts +++ b/src/JestExt/process-listeners.ts @@ -14,7 +14,7 @@ const POSSIBLE_ENV_ERROR_REGEX = /^(((?!(jest|react-scripts)).)*)(command not found|no such file or directory)/im; const TEST_PATH_PATTERNS_V30_ERROR_REGEX = - /Option "testPathPattern" was replaced by "testPathPatterns"\./i; + /Option "testPathPattern" was replaced by "--testPathPatterns"\./i; const TEST_PATH_PATTERNS_NOT_V30_ERROR_REGEX = /Unrecognized option "testPathPatterns". Did you mean "testPathPattern"\?/i; export class AbstractProcessListener { diff --git a/src/extension-manager.ts b/src/extension-manager.ts index 053cc386..234aae93 100644 --- a/src/extension-manager.ts +++ b/src/extension-manager.ts @@ -524,6 +524,7 @@ export class ExtensionManager { const ReleaseNoteBase = 'https://github.com/jest-community/vscode-jest/blob/master/release-notes'; const ReleaseNotes: Record = { + '6.4.4': `${ReleaseNoteBase}/release-note-v6.md#v644`, '6.4.3': `${ReleaseNoteBase}/release-note-v6.md#v643`, '6.4.2': `${ReleaseNoteBase}/release-note-v6.md#v642-pre-release`, '6.4.1': `${ReleaseNoteBase}/release-note-v6.md#v641-pre-release`, diff --git a/tests/JestExt/process-listeners.test.ts b/tests/JestExt/process-listeners.test.ts index ef078cc2..af365d1f 100644 --- a/tests/JestExt/process-listeners.test.ts +++ b/tests/JestExt/process-listeners.test.ts @@ -580,11 +580,11 @@ describe('jest process listeners', () => { describe('jest 30 support', () => { describe('can restart process if detected jest 30 related error', () => { it.each` - case | output | useJest30Before | useJest30After | willRestart - ${1} | ${'Error in JestTestPatterns'} | ${null} | ${null} | ${false} - ${2} | ${'Error in JestTestPatterns'} | ${true} | ${true} | ${false} - ${3} | ${'Process Failed\nOption "testPathPattern" was replaced by "testPathPatterns".'} | ${null} | ${true} | ${true} - ${4} | ${'Process Failed\nOption "testPathPattern" was replaced by "testPathPatterns".'} | ${false} | ${true} | ${true} + case | output | useJest30Before | useJest30After | willRestart + ${1} | ${'Error in JestTestPatterns'} | ${null} | ${null} | ${false} + ${2} | ${'Error in JestTestPatterns'} | ${true} | ${true} | ${false} + ${3} | ${'Process Failed\nOption "testPathPattern" was replaced by "--testPathPatterns".'} | ${null} | ${true} | ${true} + ${4} | ${'Process Failed\nOption "testPathPattern" was replaced by "--testPathPatterns".'} | ${false} | ${true} | ${true} `('case $case', ({ output, useJest30Before, useJest30After, willRestart }) => { expect.hasAssertions(); mockSession.context.settings.useJest30 = useJest30Before;