Use Jest's Interactive Watch Mode

Share this video with your friends

Send Tweet

Jest ships with a pretty amazing interactive watch mode which you can initiate with jest --watch. Let's learn about the bits of interactivity and how this can really improve your workflow.

Eric Fields
Eric Fields
~ 8 years ago

Can you share how you mapped global jest to your local node_modules/jest/bin/jest.js?

Kent C. Dodds
Kent C. Dodds(instructor)
~ 8 years ago

Hey Eric, I answered you here: https://github.com/kentcdodds/ama/issues/230

Gar Liu
Gar Liu
~ 8 years ago

Adding this to the package.json works for me.

"watch": "jest --watch"

npm run watch