FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test_runner: fix env option validation by hanityx · Pull Request #64865 · nodejs/node · GitHub

/ node Public

test_runner: fix env option validation - #64865

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
hanityx:fix-test-runner-env-validation
Aug 4, 2026
Merged

test_runner: fix env option validation#64865
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
hanityx:fix-test-runner-env-validation

Conversation

hanityx commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Invalid values passed to run({ env }) currently throw
ERR_INTERNAL_ASSERTION because the option name is missing from the
validateObject() call.

This passes options.env to the validator so callers receive
ERR_INVALID_ARG_TYPE instead, and adds a regression test for invalid
values.

Tests: tools/test.py test/parallel/test-runner-run.mjs

Signed-off-by: hanityx <hanityx@gmail.com>

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/test_runner

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 31, 2026

codecov Bot commented Jul 31, 2026
edited
Loading

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.15%. Comparing base (bec3d0b) to head (22990d1).
⚠️ Report is 96 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #64865   +/-   ##
=======================================
  Coverage   90.14%   90.15%           
=======================================
  Files         746      746           
  Lines      242763   242763           
  Branches    45761    45762    +1     
=======================================
+ Hits       218848   218867   +19     
+ Misses      15402    15393    -9     
+ Partials     8513     8503   -10     
Files with missing lines Coverage Δ
lib/internal/test_runner/runner.js 94.42% <100.00%> (ø)

... and 29 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.

atlowChemi added request-ci Add this label to start a Jenkins CI on a PR. author ready PRs that have at least one approval, no outstanding review comments, and a CI started. labels Aug 3, 2026
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

atlowChemi added the commit-queue Add this label to land a pull request using GitHub Actions. label Aug 4, 2026
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Aug 4, 2026
nodejs-github-bot merged commit 8465148 into nodejs:main Aug 4, 2026
83 checks passed

Copy link
Copy Markdown
Collaborator

Landed in 8465148

aduh95 pushed a commit that referenced this pull request Aug 13, 2026
Signed-off-by: hanityx <hanityx@gmail.com>
PR-URL: #64865
Reviewed-By: Aviv Keller <me@aviv.sh>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
aduh95 pushed a commit that referenced this pull request Aug 25, 2026
Signed-off-by: hanityx <hanityx@gmail.com>
PR-URL: #64865
Reviewed-By: Aviv Keller <me@aviv.sh>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. 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.

6 participants


Back | FazBrowse Home | New Git URL