A comprehensive experience when using Facebook's Jest within a project.
- Useful IDE based Feedback
- Session based test watching
Orta Therox (@orta), Sean Poulter (@seanpoulter), Vincent Voyer (@vvo) & ConnectDotz (@connectdotz).
- Starts Jest automatically when you're in a root folder project with Jest installed.
- Show individual fail / passes inline.
- Show fails inside the problem inspector.
- Highlights the errors next to the
- Adds syntax highlighting to snapshot files.
- A one button update for failed snapshots.
- Show coverage information in files being tested. (requires coverage to be collected by your jest config)
How to get it?
Open up VS Code, go search for the extension "Jest".
How to get it set up?
This project has the expectation that you would run something like
npm run test which just looks like
jest in the
package.json. So, please keep your configuration inside the
package.json as opposed to using command line arguments.
If have a more complex setup, it can probably be supported, check out the settings. They are all prefixed with
Also, you should use Jest 17+, however 16 works - it will just offer a warning. We're aiming to try and do current Jest version - 1, but won't specifically drop support for older versions unless we're forced into it.
How to start the Jest?
The extension will start Jest for you when:
- we find Jest configuration files in the workspace:
- we find Jest installed in the workspace:
- we find the workspace has been bootstrapped with create-react-app:
- you run the Jest: Start Runner command