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.

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:

  1. Run jest with --watch --notify
  2. Save a file that is untested
  3. Notification like so shows up and console says No tests found related to files changed since last commit.
screen shot 2018-05-30 at 5 14 50 pm

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:closed
  • Created 5 years ago
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
thymikeecommented, Jun 2, 2018

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.

2reactions
taylorwinfieldcommented, Jun 1, 2018

Happy to pick this one up.

What’s the proposed format as currently the notifier expects a message and a title?

Read more comments on GitHub >

github_iconTop 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 >

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