node/test/message
cjihrig 215c5317d4 test_runner: add t.after() hook
This commit adds an after() hook to the TestContext class. This
hook can be used to clean up after a test finishes.

PR-URL: https://github.com/nodejs/node/pull/45792
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2022-12-11 19:19:07 +00:00
..
2100bytes.js
2100bytes.out
assert_throws_stack.js
assert_throws_stack.out
async_error_eval_cjs.js
async_error_eval_cjs.out
async_error_eval_esm.js
async_error_eval_esm.out
async_error_microtask_main.js
async_error_microtask_main.out
async_error_nexttick_main.js
async_error_nexttick_main.out test: adapt message tests for V8 10.2 2022-04-12 22:11:17 +02:00
async_error_sync_esm.mjs
async_error_sync_esm.out
async_error_sync_main.js
async_error_sync_main.out
console_low_stack_space.js
console_low_stack_space.out
console.js
console.out
core_line_numbers.js test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
core_line_numbers.out test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
error_aggregateTwoErrors.js test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
error_aggregateTwoErrors.out test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
error_exit.js test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
error_exit.out test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
error_with_nul.js test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
error_with_nul.out test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
eval_messages.js
eval_messages.out esm: add --import flag 2022-07-31 04:08:02 +01:00
events_unhandled_error_common_trace.js test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
events_unhandled_error_common_trace.out test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
events_unhandled_error_nexttick.js test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
events_unhandled_error_nexttick.out test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
events_unhandled_error_sameline.js test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
events_unhandled_error_sameline.out test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
events_unhandled_error_subclass.js test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
events_unhandled_error_subclass.out test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
hello_world.js
hello_world.out
if-error-has-good-stack.js test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
if-error-has-good-stack.out test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
internal_assert_fail.js
internal_assert_fail.out
internal_assert.js
internal_assert.out
max_tick_depth.js
max_tick_depth.out
message.status
nexttick_throw.js
nexttick_throw.out test: adapt message tests for V8 10.2 2022-04-12 22:11:17 +02:00
promise_always_throw_unhandled.js
promise_always_throw_unhandled.out
promise_unhandled_warn_with_error.js
promise_unhandled_warn_with_error.out
source_map_disabled_by_api.js test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
source_map_disabled_by_api.out test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
source_map_enabled_by_api.js test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
source_map_enabled_by_api.out test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
source_map_enclosing_function.js test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
source_map_enclosing_function.out test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
source_map_eval.js test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
source_map_eval.out test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
source_map_no_source_file.js test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
source_map_no_source_file.out test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
source_map_reference_error_tabs.js test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
source_map_reference_error_tabs.out test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
source_map_sourcemapping_url_string.js lib: don't match sourceMappingURL in strings 2022-09-26 00:11:18 +08:00
source_map_sourcemapping_url_string.out lib: don't match sourceMappingURL in strings 2022-09-26 00:11:18 +08:00
source_map_throw_catch.js test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
source_map_throw_catch.out test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
source_map_throw_first_tick.js test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
source_map_throw_first_tick.out test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
source_map_throw_icu.js test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
source_map_throw_icu.out test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
source_map_throw_set_immediate.js
source_map_throw_set_immediate.out src,lib: print source map error source on demand 2022-07-28 08:09:30 +08:00
stack_overflow.js
stack_overflow.out
stdin_messages.js
stdin_messages.out esm: add --import flag 2022-07-31 04:08:02 +01:00
test_runner_abort_suite.js test_runner: recieve and pass AbortSignal 2022-07-20 13:32:58 +01:00
test_runner_abort_suite.out test_runner: recieve and pass AbortSignal 2022-07-20 13:32:58 +01:00
test_runner_abort.js test_runner: recieve and pass AbortSignal 2022-07-20 13:32:58 +01:00
test_runner_abort.out test_runner: recieve and pass AbortSignal 2022-07-20 13:32:58 +01:00
test_runner_describe_it.js test_runner: add before/after/each hooks 2022-07-30 23:10:51 +03:00
test_runner_describe_it.out test_runner: fix afterEach not running on test failures 2022-11-07 05:58:39 +00:00
test_runner_describe_nested.js test_runner: report tap subtest in order 2022-10-30 15:36:35 +02:00
test_runner_describe_nested.out test_runner: report tap subtest in order 2022-10-30 15:36:35 +02:00
test_runner_hooks.js test_runner: add t.after() hook 2022-12-11 19:19:07 +00:00
test_runner_hooks.out test_runner: fix afterEach not running on test failures 2022-11-07 05:58:39 +00:00
test_runner_no_refs.js
test_runner_no_refs.out test_runner: verbous error when entire test tree is canceled 2022-08-02 06:52:41 +01:00
test_runner_no_tests.js
test_runner_no_tests.out test_runner: support programmatically running --test 2022-08-24 15:54:44 +03:00
test_runner_only_tests.js
test_runner_only_tests.out test_runner: cancel on termination 2022-07-08 11:17:44 +01:00
test_runner_output.js test_runner: include stack of uncaught exceptions 2022-09-14 19:28:18 +00:00
test_runner_output.out test_runner: fix afterEach not running on test failures 2022-11-07 05:58:39 +00:00
test_runner_test_name_pattern_with_only.js test_runner: add --test-name-pattern CLI flag 2022-10-04 09:15:02 -04:00
test_runner_test_name_pattern_with_only.out test_runner: add --test-name-pattern CLI flag 2022-10-04 09:15:02 -04:00
test_runner_test_name_pattern.js test_runner: call {before,after}Each() on suites 2022-10-27 08:27:35 +00:00
test_runner_test_name_pattern.out test_runner: add --test-name-pattern CLI flag 2022-10-04 09:15:02 -04:00
test_runner_unresolved_promise.js test_runner: empty pending tests queue post running 2022-07-31 12:53:06 +01:00
test_runner_unresolved_promise.out test_runner: verbous error when entire test tree is canceled 2022-08-02 06:52:41 +01:00
test-no-extra-info-on-fatal-exception.js test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
test-no-extra-info-on-fatal-exception.out test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
testcfg.py
throw_custom_error.js
throw_custom_error.out
throw_error_with_getter_throw.js
throw_error_with_getter_throw.out
throw_in_line_with_tabs.js
throw_in_line_with_tabs.out
throw_non_error.js
throw_non_error.out
throw_null.js
throw_null.out
throw_undefined.js
throw_undefined.out
timeout_throw.js
timeout_throw.out test: adapt message tests for V8 10.2 2022-04-12 22:11:17 +02:00
undefined_reference_in_new_context.js test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
undefined_reference_in_new_context.out test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
unhandled_promise_trace_warnings.js
unhandled_promise_trace_warnings.out
util_inspect_error.js
util_inspect_error.out
util-inspect-error-cause.js
util-inspect-error-cause.out
v8_warning.js
v8_warning.out
vm_caught_custom_runtime_error.js
vm_caught_custom_runtime_error.out
vm_display_runtime_error.js test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
vm_display_runtime_error.out test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
vm_display_syntax_error.js test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
vm_display_syntax_error.out test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
vm_dont_display_runtime_error.js test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
vm_dont_display_runtime_error.out test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
vm_dont_display_syntax_error.js test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00
vm_dont_display_syntax_error.out test: remove cjs loader from stack traces 2022-08-14 21:59:02 +00:00