Skip to content

fix(watch): keep watching when test files are removed mid-run#5974

Open
mostafaNazari702 wants to merge 1 commit into
mochajs:mainfrom
mostafaNazari702:fix/watch-missing-files-4169
Open

fix(watch): keep watching when test files are removed mid-run#5974
mostafaNazari702 wants to merge 1 commit into
mochajs:mainfrom
mostafaNazari702:fix/watch-missing-files-4169

Conversation

@mostafaNazari702
Copy link
Copy Markdown
Contributor

PR Checklist

Overview

Splitting up #5889 per Josh's instruction

@codecov
Copy link
Copy Markdown

codecov Bot commented May 16, 2026

Codecov Report

❌ Patch coverage is 51.61290% with 15 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.63%. Comparing base (724fb50) to head (dfda075).

Files with missing lines Patch % Lines
lib/cli/watch-run.js 33.33% 10 Missing ⚠️
lib/cli/run-helpers.js 61.53% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5974      +/-   ##
==========================================
- Coverage   80.85%   80.63%   -0.23%     
==========================================
  Files          64       64              
  Lines        4566     4591      +25     
  Branches      977      964      -13     
==========================================
+ Hits         3692     3702      +10     
- Misses        874      889      +15     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐛 Bug: Mocha quits watching when all tests file are removed

1 participant