Auto-Jest

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

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

Watching for file changes 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.

If spec file is found, Jest is run upon this file You will see loading bar until Jest is executed. 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✔️

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

Requirements