Simple way to run or debug a single or multiple Jest-Tests from context menu.
As it is possible in IntelliJ / Webstorm
Run your Jest Tests from context-menu
- right click your test and select Run Jest from context menu
- to run a test in debug mode use Debug Jest
By default Jest finds config from package.json
or if you module.export = {}
in a jest.config.js
file.
But if you need to define a external config file use the following config options:
Command | Description |
---|---|
jestrunner.configPath | Define an external jest-config path to jest (from ${workFolder} e.g. jest-config.json) |
jestrunner.jestPath | Define an absolute path to jest (e.g. /usr/lib/node_modules/jest/bin/jest.js) |
- Possibility to show the additional context menu items only while in a test file e.g. test.(js|ts). Currently its shown, no matter which file.