Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>JavaScript Test RunnerNew to Visual Studio Code? Get it now.
JavaScript Test Runner

JavaScript Test Runner

Preview

weakptr

|
5,938 installs
| (0) | Free
Run JavaScript tests easily using CodeLens.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

this extension is adapted from g3offrey/javascript-test-runner and oshri6688/javascript-test-runner.

I don't like Test Explorer things and did want some not THAT powerful but just good enough test runner for my daily work.

so that's it. just make this little extension works.

JavaScript Test Runner

All Contributors

Overview

JavaScript Test Runner add codelens near describe, it, and test keywords permitting to run associated tests and outputing result in a Code integrated terminal. Currently it works out of the box for React-Scripts , Mocha and Jest test runner.

Demo

demo

Available configuration

javascript-test-runner.additionalArgs : CLI args to pass to test runner. Example : "--watch"

javascript-test-runner.envVars : Environment variables to set before running a test. Example : { NODE_ENV": "test" }

Compatibility

This extension works currently with :

  • Mocha
  • Jest
  • react-scripts

Need help?

Visit the Troubleshooting Guide.

Contribute

Please feel free to fork, improve, make pull requests or fill issues. I'll be glad to fix bugs you encountered or improve the extension.

Contributors

Thanks goes to these wonderful people (emoji key):


Geoffrey

💻 🤔

Johan Rouve

💻 🐛

Kreshchenko Nickolay

💻 🤔

roggenbrot

💻 🐛 🤔

Fabien Allanic

🐛

Daniel Friesen

🐛

Steven Goris

🐛

Sam J

🐛

Jorik Kraaikamp

🐛

Peter Hu

🐛

Marco Andreotti

🐛

小秦

💻

weak_ptr

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

Please be advised that any kind of contribution (code, bug report, idea ...) deserves to appear here. If you don't appear here don't hesitate to open a new ticket. In the other hand if you don't want to be mentionned don't hesitate to notice it to me.

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