Skip to content

test_runner: run global after() hook earlier

Rodrigo Muino Tomonari requested to merge github/fork/cjihrig/after-handles into main

This commit moves the global after() hook execution from the 'beforeExit' event to the point where all tests have finished running. This gives the global after() a chance to clean up handles that would otherwise prevent the 'beforeExit' event from being emitted.

Fixes: https://github.com/nodejs/node/issues/49056

Merge request reports

Loading