v4.0.0-alpha.3 (Jan 27, 2021)
Pre-releaseSummary
4th alpha release of v4 (#576). This release mainly contains the following changes:
- Added full support for parameterized tests across the extension. (#649)
- support all variations of the
.each
syntax for both test and describe blocks. - The parameterized tests get aggregated status indicator
- The extension can now report/highlight multiple errors for a given test block. All errors from parameterized tests are shown inline, via hovering message, and in the PROBLEM panel.
- The extension's debug codeLens can now select from multiple candidates for a given test block. Therefore, each parameterized test can be debugged with a selected set of parameters.
- support all variations of the
- Optimization: no longer needs to stop/start jest process when debugging. (#649)
- start to migrate to the new
jest.jestCommandLine
setting and deprecatejest.pathToJest
andjest.pathToConfig
. (#644) - Enhance README for
rootPath
setting. (#643)
Detail see CHANGELOG
Migration Notes
There is a known issue in jest that parameterized tests have incorrect locations (jestjs/jest#10412). The fix (jestjs/jest#10413) was merged in jest-26.5.0. Therefore, the minimal jest version for projects with parameterized tests should be >= 26.5.0
Contributors 🙏
How to test
you can manually install the plugin by downloading the vscode-jest-4.0.0-alpha.3.vsix
below, then follow the vscode instruction: install from vsix. You can always revert to the official version if needed: install-previous-versions.
There is a lot of new stuff, so we added quite a few debugging messaging to help diagnose problems. if anything didn't do what you expected, please turn on the debug mode and file issues.