vscode-jest

The optimal flow for Jest based testing in VS Code

MIT License

Downloads
86
Stars
2.8K
Committers
80

Bot releases are visible (Hide)

vscode-jest - v5.0.0 (Oct 9, 2022)

Published by connectdotz about 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/jest-community/vscode-jest/compare/v4.6.0...v5.0.0
Release Note: v5.0.0 (pre-release)

vscode-jest - v4.6.0 (May 25, 2022)

Published by connectdotz over 2 years ago

vscode-jest - v4.5.0 (May 1, 2022)

Published by connectdotz over 2 years ago

What's Changed

Full Changelog: https://github.com/jest-community/vscode-jest/compare/v4.4.0...v4.5.0

vscode-jest - v4.4.0 (Apr 17, 2022)

Published by connectdotz over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/jest-community/vscode-jest/compare/v4.3.1...v4.4.0

vscode-jest - v4.3.1 (Jan 4, 2022)

Published by connectdotz almost 3 years ago

Summary

new features

  • Introduced a variable-based debugging mechanism so users now have full control of the debug command. This should enable Angular users to use the debug feature. The new debug config will be named vscode-jest-tests.v2, all existing vscode-jest-tests config will continue to be supported. (#787)
  • added vue language support (#791)
  • open TestExplorer's output terminal upon appending the first output. (#797)
  • enable interactive test run for watch mode (#809, #821)

bug fixes

  • fixed issue in running/debugging tests with quotes or "$" in the name. (#789)
  • fixed various documentation issues. (#792, #794, #795, #796, #822, #823)
  • running coverage from test file sometimes failed to generate coverage output (#791)
  • address security vulnerability (#820)

change log: v4.2.1 -> v4.3.1

Contributors 🙏

@bhrutledge @jlecordier @JeffEmery @connectdotz

vscode-jest - v4.3.0-rc.1 (Oct 24, 2021)

Published by connectdotz almost 3 years ago

Summary

  • Introduced a variable-based debugging mechanism so users now have full control of the debug command. This should enable Angular users to use the debug feature. The new debug config will be named vscode-jest-tests.v2, all existing vscode-jest-tests config will continue to be supported.
  • fix a bug the prevented individual tests to be run in interactive mode if their name includes quotes or "$".

change log: v4.2.1 -> v4.3.0-rc.1

Contributors 🙏

@connectdotz

vscode-jest - v4.2.1 (Oct 12, 2021)

Published by connectdotz about 3 years ago

Overview

minor release to fix test file might lose test status indicator upon startup for non-watch mode env (#785)

change log: v4.2.0 -> v4.2.1

Contributors 🙏

@connectdotz

vscode-jest - v4.2.0 (Oct 9, 2021)

Published by connectdotz about 3 years ago

This release mainly enhances TestExplore support and added new settings to help customize shell and node env for jest runner process.

Overview

  • Not-yet-executed tests will have a "runnable" status icon so the test menu is always accessible regardless of autoRun mode. (#773)

  • image

    • This means users can debug tests without using DebugCodeLens, which sometimes could interfere with the editing process. To disable DebugCodeLens, use "jest.debugCodeLens.showWhenTestStateIn": [].
    • The "Run Test" menu will only be shown for interactive mode, i.e. not available for watch mode since the tests are monitored by the external watcher.
  • Two new settings are added to customize jest runner process: (#777)

    • jest.nodeEnv: append additional env to the jest runner process.env
    • jest.shell: allow users to choose which shell to use for jest run instead of the default shell.
  • fixed inline popup started to appear in vscode 1.61 even when showInlineError is false (#773)

  • Added language support for snapshot files (#779)

  • updated README and fixed typo (#768, #769)

  • upgrade internal dependency (#775)

change log: v4.1.2 -> v4.2.0

Contributors 🙏

@olejec @roottool @Yash-Singh1 @connectdotz

vscode-jest - v4.1.2 (Sep 3, 2021)

Published by connectdotz about 3 years ago

Another minor release to remove the release messaging. (#763)

vscode-jest - v4.1.1 (Aug 24, 2021)

Published by connectdotz about 3 years ago

minor release to fix release messaging issue #755

Contributors 🙏

@connectdotz

vscode-jest - v4.1.0 (Aug 21, 2021)

Published by connectdotz about 3 years ago

This release is mainly to support the newly available official TestExplore via a new set of vscode.tests api in 1.59 build. This provided a nice test-centric view and a more published UI experience that worked pretty well with the existing engine:

  • all executed tests are visible in test explorer and can be debug from test explorer, in addition to the debug codeLens.
  • In interactive mode, test(s) can be triggered via test explorer as well.
  • users can see native/color-coded jest output via test explorer's terminal output.
  • replaced the custom inlineMessage with testExplorer's , which can be enabled through jest.testExplorer.

settings

This release is backward compatible, all existing settings (other than deprecation of the jest.enableInlineErrorMessages) would work as before, with an additional setting jest.testExplorer to fine-tune the test explorer behavior.

More info see v4.1 with Test Explorer

see CHANGELOG for more details.

Contributors 🙏

@tommy @connectdotz

vscode-jest - v4.0.3 (June 13, 2021)

Published by connectdotz over 3 years ago

patch release:

  • test result matching will try a few more fallback mechanisms when test output has incorrect information, such as missing ancestor titles (#715) or incorrect locations (windows parameterized tests, #697, #694). The fallback mechanism might still not be able to correctly identify parameterized or non-literal-named tests, in those cases, you can try to wrap the test in a 1-1 describe block with the literal name. Hopefully, the external systems will address the root cause soon.
  • typescript test file .ts with "<>" casting no longer cause parse error. (#706)
  • project with large test files should now able to report the correct test list without warning. (#699)
  • a few other stability improvements.

See CHANGELOG for more details.

Contributors 🙏

@connectdotz

vscode-jest - v4.0.2 (May 21, 2021)

Published by connectdotz over 3 years ago

patch 4.0.0 for the following issues:

  • windows users not able to debug with codeLens (#694)
  • change context menu "Jest: Run Related Tests" keyboard shortcut to avoid conflict: new keybinding: Ctrl-Alt-t or Ctrl-Option-t (Mac)

Known Issues

Contributors 🙏

@Agalin @connectdotz @stephtr

vscode-jest - v4.0.1 (May 12, 2021)

Published by connectdotz over 3 years ago

patch 4.0.0 for the following issues:

  • test files lost status and debug decorators for windows users (#694)
  • should not show warning message for projects without any test file (#689)

Contributors 🙏

@connectdotz (special thanks to @dgoemans @obvioussean @macabeus @stephtr who helped diagnose and test the fix)

vscode-jest - v4.0.0 (May 9, 2021)

Published by connectdotz over 3 years ago

This is the official v4 release (finally! 😄)

There are a lot of changes in this release. We will list the major features/changes below, more detail can be found in CHANGELOG

Release Summary

  • move the test status indicators to the gutter so they won't interfere with source code formatting.
  • migrating to the position-based test block <-> test result matching algorithm so we can better support dynamic test names, such as parameterized tests and template literal strings names.
  • fully support parameterized tests, including all syntax variants, and allowing select the specific parameter for debugging. (Please note this requires minimal jest version >= 26.5.0)
  • addressed a few code coverage issues and added color customization "jest.CoverageColor"
  • introduce a "setup wizard" to help people unable to get their test running through this extension.
    • a new command Jest: Setup Extension is added.
  • introduce an "interactive mode", in addition to the default "watch" mode, to control what and when tests should be executed and enable "on-demand" file-based test runs. This should help people with many or resource-intensive tests to avoid the dreaded high CPU due to watcher running the related tests upon changes.
    • A new setting "jest.autoRun" is introduced to control the runner mode. This will supercede "jest.autoEnable" and "jest. runAllTestsFirst". If you have these settings, please consider migrate.
    • New commands and editor context menu are added to facilitate the "on-demand" test run.
    • Enhanced status bar display to show the whole workspace test state. In addition to the "success" and "failure" status, it also shows "unknown" indicating the number of tests that haven't been run yet, especially useful for the interactive mode.
  • introduced the new setting "jest.jestCommandLine" that supercedes jest.pathToJest + jest.pathToConfig, which will be deprecated in the future versions.
  • Removed "Jest: Restart Runner" command. The "Jest: Start Runner" will restart the runner if one is already running.
  • Updated README so the community can better self-help.
  • the internal process management model is rewritten to support the interactive mode and the upcoming vscode test framework.
    • Updating snapshot no longer requires restarting the jest runner, i.e. no need for "jest.restartJestOnSnapshotUpdate"
  • many internal code-base cleanup, refactoring, and modernization to hopefully make future development of this extension easier and more fun 😄

Migration Guide

Required

  • Please ensure your project has jest version >= 26.5.0 if you have, or plan to use, parameterized tests. See "Location for test.each results is always 42,9" (facebook/jest#10412), which was fixed in [email protected].

Recommanded

  • Migrate to "jest.jestCommandLine" if you have jest.pathToJest or jest.pathToConfig customized.
  • Migrate to "jest.autoRun" if you have customized "jest.autoEnable" or "jest. runAllTestsFirst"

Contributors 🙏

@stephtr, @lordofthelake, @connectdotz, @glentakahashi, @Tymek, @johnnyreilly

vscode-jest - v4.0.0-alpha.5 (Apr 4, 2021)

Published by connectdotz over 3 years ago

Summary

This release packed a lot of changes that should complete the main v4 (#576) features we aim to deliver :

  • introduced an "interactive-mode" to allow more granular control in when and what tests should be run, in addition to the current default "watch-mode" that relies on the watchman, a.k.a jest --watch. (see how to trigger the test run)
  • introduced a "Setup Wizard" to help people configure the essential settings for this extension if needed. (Setup Wizard)
  • new commands are added for wizard and interactive-mode. (Commands)
  • a new context menu is added for the non-watch mode to trigger the test run on-demand. (Menu)
  • new status bar to show more detailed stats (Status Bar)
  • introduced new settings autoRun to support the new runner model, which should eventually replace many other settings marked "deprecated" (Settings)

Detail see CHANGELOG

Migration Guide (rollup)

  • migrating to new setting jest.autoRun: while the settings are completely backward compatible, it is recommended to migrate to the new setting and stop using the deprecated ones sooner than later.
  • migrating to jest.jestCommandLine, which replaces jest.pathToJest, jest.pathToConfig (v4.0.0-alpha.3)
  • (required) upgrade jest >= 26.5.0 for parametized tests (v4.0.0-alpha.3)

Contributors 🙏

@connectdotz

How to test

you can manually install the plugin by downloading the vscode-jest-4.0.0-alpha.5.vsix below, then follow the vscode instruction: install from vsix. You can always revert to the official version if needed: install-previous-versions.

Due to the scope of the changes, we would really love to have as many people testing it as possible. Please do not hesitate to ask questions or raise issues, we can fast-track them much easier in the alpha stage. You have probably also noticed that we have made significant changes in README, please let us know if you have any suggestion to make it more useful for the community.

vscode-jest - v4.0.0-alpha.4 (Feb 13, 2021)

Published by connectdotz over 3 years ago

Summary

5th alpha release of v4 (#576). This release mainly contains the following changes:

  • Addressing alpha.3 issues #657 #658
  • Readme update for potential coverage reporting issue.
  • Turn on typescript compiler strict mode for src - prevent future typing related crash.

Detail see CHANGELOG

Contributors 🙏

@connectdotz

How to test

you can manually install the plugin by downloading the vscode-jest-4.0.0-alpha.4.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.

vscode-jest - v4.0.0-alpha.3 (Jan 27, 2021)

Published by connectdotz over 3 years ago

Summary

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.
  • Optimization: no longer needs to stop/start jest process when debugging. (#649)
  • start to migrate to the new jest.jestCommandLine setting and deprecate jest.pathToJest and jest.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 (facebook/jest#10412). The fix (facebook/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 🙏

@johnnyreilly, @connectdotz

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.

vscode-jest - v4.0.0-alpha.2 (Dec 20, 2020)

Published by connectdotz almost 4 years ago

Summary

3rd alpha release of v4 (#576). This release mainly contains the following changes:

  • when debugging tests, the extension is now aware of their containing describe-blocks so it can distinguish tests with the same name but in different describe blocks. (#632)
  • coverage formatter enhancement: added color customization; fixed coverage formatter parsing error and inconsistency; improved coverage help in README etc (#635)
  • update vulnerable dependencies

Detail see CHANGELOG

Contributors 🙏

@connectdotz

How to test

you can manually install the plugin by downloading the vscode-jest-4.0.0-alpha.2.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.

vscode-jest - v4.0.0-alpha.1 (Aug 17, 2020)

Published by connectdotz about 4 years ago

Summary

Second alpha release of v4 (#576). This release contains the following changes:

  • move test status decoration to the gutter so it won't interfere with code formating. (#599)
  • enhance debug config to be more compatible with the workspace settings. (#567)

Detail see CHANGELOG

Contributors 🙏

@glentakahashi, @Tymek

How to test

you can manually install the plugin by downloading the vscode-jest-4.0.0-alpha.1.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.

Package Rankings
Top 16.99% on Npmjs.org
Badges
Extracted from project README
Build Status Coverage Status Visual Studio Marketplace