node/test/fixtures/test-runner
Heath Dutton🕴️ 399ac68427
test_runner: fix coverage report when a directory is named file
The coverage tree traversal checked `tree[key].file` to detect file
entries. When a directory named "file" contained a file also named
"file", this check incorrectly matched the child entry instead of
file metadata, causing a TypeError when accessing `.path`.

Check for `.file?.path` instead to correctly identify file metadata.

Fixes: https://github.com/nodejs/node/issues/61080
PR-URL: https://github.com/nodejs/node/pull/61169
Reviewed-By: Aviv Keller <me@aviv.sh>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Pietro Marchini <pietro.marchini94@gmail.com>
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
2026-01-20 14:36:02 +01:00
..
aborts
concurrency
coverage
coverage-default-exclusion
coverage-file-name test_runner: fix coverage report when a directory is named file 2026-01-20 14:36:02 +01:00
coverage-loader
coverage-snap
coverage-with-mock test: exclude mock from coverage 2025-08-11 05:49:53 +00:00
custom_reporters
cwd
default-behavior
error-reporter-fail-fast
flag-propagation test_runner: propagate V8 options to child process 2026-01-13 10:04:44 -03:00
global-setup-teardown
issue-54726
matching-patterns
no-isolation
node_modules
options-propagation src: rename config file testRunner to test 2026-01-13 10:04:20 -03:00
output test_runner: support expecting a test-case to fail 2026-01-20 14:35:58 +01:00
plan
shards
snapshots
source-maps
async-error-in-test-hook.mjs
coverage.js
extraneous_set_immediate_async.mjs
extraneous_set_timeout_async.mjs
index.js
invalid-tap.js
mock-nm.js
nested.js
never_ending_async.js
never_ending_sync.js
print-arguments.js
protoMutation.js
recursive_run.js
reporters.js
rerun.js test_runner: fix rerun ambiguous test failures 2026-01-20 14:36:01 +01:00
root-duration.mjs
run_inspect.js
run_inspect_assert.js
test-runner-global-hooks.mjs
test_only.js
throws_sync_and_async.js
todo_exit_code.js test_runner: fix todo inheritance 2025-09-04 09:35:48 +00:00
user-logs.js