node/lib/internal/test_runner
cjihrig 2ce7c69fce test_runner: add context.filePath
This commit adds a filePath getter to the TestContext and
SuiteContext classes. This allows a context to be mapped back to
the original test file that created it, even if it was imported
from another file. This is useful for mapping features like test
snapshots to the correct test file. This is also prep work for
supporting running test files in the test runner process.

PR-URL: https://github.com/nodejs/node/pull/53853
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
2024-07-17 07:01:21 +00:00
..
mock test_runner: support module detection in module mocks 2024-07-04 13:30:01 +00:00
reporter test_runner: display failed test stack trace with dot reporter 2024-05-07 14:30:25 +03:00
coverage.js test_runner: consolidate option parsing 2024-07-16 21:05:46 +00:00
harness.js test_runner: add context.filePath 2024-07-17 07:01:21 +00:00
runner.js test_runner: remove plan option from run() 2024-07-15 17:10:01 +00:00
snapshot.js test_runner: fix escaping in snapshot tests 2024-07-15 14:55:43 +00:00
test.js test_runner: add context.filePath 2024-07-17 07:01:21 +00:00
tests_stream.js test_runner,doc: align documentation with actual stdout/stderr behavior 2024-05-28 19:44:16 +00:00
utils.js test_runner: consolidate option parsing 2024-07-16 21:05:46 +00:00