Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How can I use the watch option with jest?

See original GitHub issue

I am executing my tests using npm test:

"scripts": {
    "test": "serverless-bundle test"

Is it possible to launch jest in watch mode?


Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

damien-monnicommented, Nov 5, 2019

It’s now working with:

"scripts": {
    "test": "serverless-bundle test --watch --runInBand"

I don’t know why it wasn’t last time…


damien-monnicommented, Nov 3, 2019

–watchAll is working, but it doesn’t with --watch only. I’m not at my computer now so I can’t tell you the exact error message though.

Le dim. 3 nov. 2019 à 11:40, Jay V a écrit :

Hmm I’ve noticed one of our other users using something like this: #4

serverless-bundle test --watchAll --runInBand

Does that work for you?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Watch Plugins - Jest
The Jest watch plugin system provides a way to hook into specific parts of Jest and to define watch mode menu prompts that...
Read more >
Watch and rerun Jest JS tests - npm - Stack Overflow
The better configuration for package.json would be { "scripts": { "test": "jest" } }. To turn on the watch mode, just use $...
Read more >
Jest CLI Options - GitHub Pages
Watch files for changes and rerun all tests when something changes. If you want to re-run only the tests that depend on the...
Read more >
Use Jest's Interactive Watch Mode -
Jest ships with a pretty amazing interactive watch mode which you can initiate with jest --watch . Let's learn about the bits of...
Read more >
React Testing Tutorial - 10 - Jest Watch Mode - YouTube
Sign up for free here - Courses - Support ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found