Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>auto.jestNew to Visual Studio Code? Get it now.
auto.jest

auto.jest

selfrefactor

|
608 installs
| (0) | Free
auto run jest tests
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Auto-Jest

https://github.com/selfrefactor/auto-jest

Click ctrl+f9 to start the extensions, which does the following:

  1. Watching for file changes

  2. Upon each file change, it tries to find spec file corresponding to the change.

If src/foo.js is changed, it will search for src/foo.spec.js.

If src/foo.spec.js is changed, then it will use it.

  1. If spec file is found, Jest is run upon this file

  2. You will see loading bar until Jest is executed.

  3. Results are displayed to the user

If foo.spec.js countains 2 successful and 1 failed test, the user will see ❌1❌

If foo.spec.js countains 3 successful and 0 failed test, the user will see ✔️3✔️

  1. First 800 characters of Jest log are visible, if the user hovers over the result.

Requirements

You need to set autoJest.nodePath option in your VSCode settings.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft