question-mark
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?

Thanks!

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
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…

Thanks!

0reactions
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 notifications@github.com a écrit :

Hmm I’ve noticed one of our other users using something like this: #4 https://github.com/AnomalyInnovations/serverless-bundle/issues/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 https://github.com/AnomalyInnovations/serverless-bundle/issues/34?email_source=notifications&email_token=ABN3I4D5WUZMFVF6BOWRDZDQR35HHA5CNFSM4JF6UMMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEC5YOMY#issuecomment-549160755, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABN3I4ENPODK7TP3MNV2CKDQR35HHANCNFSM4JF6UMMA .

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 - Egghead.io
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 - https://studio.harperdb.io/sign-up?utm_source=codevolution2022 Courses - https://learn.codevolution.dev/ 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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found