Notification pops up even when no tests are run
See original GitHub issue🐛 Bug Report
Jest notifies me as follows that 100% of 0 tests passed when I save any file in my watched directories, even if there are no tests associated with it. What is the utility of this?
To Reproduce
Steps to reproduce the behavior:
- Run jest with
--watch --notify
- Save a file that is untested
- Notification like so shows up and console says
No tests found related to files changed since last commit.
Expected behavior
Notifications are only shown when tests are run
- jest 23.1.0
- node 8.11.2
- macOS 10.13.4
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (2 by maintainers)
Top Results From Across the Web
Eclipse notification when all JUnit tests run - Stack Overflow
You can run a test suite and get a notification in the end. On the CI server, don't run that test suite, but...
Read more >Handle pop-ups, permissions, and notifications - BrowserStack
Learn how to manage pop-ups, permissions, and notifications in different browsers when running your Selenium tests on BrowserStack Automate.
Read more >Set up an open, closed, or internal test - Play Console Help
We recommend running an internal test before releasing your app to the closed or open tracks. If needed, you can run internal tests...
Read more >Review test results - Azure Pipelines | Microsoft Learn
Results: lists all tests executed and reported as part of the current build or release. The default view shows only the failed and...
Read more >Notification runtime permission - Android Developers
App capabilities depend on user choice in permissions dialog · Select allow · Select don't allow · Swipe away from the dialog, without...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think such “empty” notifications may be annoying, especially when fiddling with git a lot. I’m OK with not displaying it whenever there were no tests run.
Happy to pick this one up.
What’s the proposed format as currently the notifier expects a message and a title?