node/test/fixtures/test-runner
Heath Dutton🕴️ 73146e9c50
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-27 22:52:27 +01:00
..
aborts
concurrency
coverage lib: fix sourcemaps with ts module mocking 2025-05-16 07:05:40 +02:00
coverage-default-exclusion test_runner: exclude test files from coverage by default 2024-12-17 11:10:17 +00:00
coverage-file-name test_runner: fix coverage report when a directory is named file 2026-01-27 22:52:27 +01:00
coverage-loader test: fix typos 2024-09-28 13:58:55 +00:00
coverage-snap
coverage-with-mock test: exclude mock from coverage 2025-08-12 09:20:04 -03:00
custom_reporters
cwd
default-behavior test_runner: differentiate test types in enqueue dequeue events 2025-01-05 08:35:35 +00:00
error-reporter-fail-fast test: add error only reporter for node:test 2025-01-11 14:19:35 +00:00
flag-propagation test_runner: propagate V8 options to child process 2026-01-19 19:19:21 +01:00
global-setup-teardown test_runner: add global setup and teardown functionality 2025-05-02 17:06:28 -03:00
issue-54726
matching-patterns Revert "test_runner: change ts default glob" 2025-05-16 07:05:41 +02:00
no-isolation test: fix dangling promise in test_runner no isolation test setup 2025-05-02 17:05:49 -03:00
node_modules
options-propagation test_runner: correctly filter --experimental-config-file 2025-07-03 10:52:35 +02:00
output test_runner: fix line feed escaping in JUnit 2026-01-19 19:19:11 +01:00
plan test: test runner run plan 2025-05-02 17:05:08 -03:00
shards
snapshots test_runner: allow special characters in snapshot keys 2025-02-19 06:34:08 +00:00
source-maps test_runner: throw on invalid source map 2024-10-06 20:27:32 +00:00
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 test_runner: support custom arguments in run() 2024-09-28 13:52:04 +00:00
protoMutation.js
recursive_run.js
reporters.js
rerun.js test_runner: fix rerun ambiguous test failures 2026-01-27 22:52:27 +01:00
root-duration.mjs
run_inspect.js
run_inspect_assert.js
test-runner-global-hooks.mjs test_runner: add global setup and teardown functionality 2025-05-02 17:06:28 -03:00
test_only.js
throws_sync_and_async.js
todo_exit_code.js test_runner: fix todo inheritance 2025-09-09 08:34:13 +02:00
user-logs.js