Skip to content

test_runner: fix mock import eviction#64650

Open
marco-ippolito wants to merge 1 commit into
nodejs:mainfrom
marco-ippolito:fix-bug
Open

test_runner: fix mock import eviction#64650
marco-ippolito wants to merge 1 commit into
nodejs:mainfrom
marco-ippolito:fix-bug

Conversation

@marco-ippolito

Copy link
Copy Markdown
Member

Fixes: #59163

Signed-off-by: Marco Ippolito <marcoippolito54@gmail.com>
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/test_runner

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. test_runner Issues and PRs related to the test runner subsystem. labels Jul 21, 2026
@codecov

codecov Bot commented Jul 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.15%. Comparing base (00917ba) to head (3880570).
⚠️ Report is 14 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #64650   +/-   ##
=======================================
  Coverage   90.14%   90.15%           
=======================================
  Files         741      741           
  Lines      242076   242157   +81     
  Branches    45558    45568   +10     
=======================================
+ Hits       218216   218310   +94     
+ Misses      15385    15357   -28     
- Partials     8475     8490   +15     
Files with missing lines Coverage Δ
lib/internal/test_runner/mock/loader.js 99.48% <100.00%> (+0.13%) ⬆️
lib/internal/test_runner/mock/mock.js 98.56% <100.00%> (+0.01%) ⬆️

... and 30 files with indirect coverage changes

🚀 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

needs-ci PRs that need a full CI run. test_runner Issues and PRs related to the test runner subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

experimental-test-module-mocks with ES imports does not reset mocked modules for tests in the same file

2 participants