Files
node/lib/internal/test_runner
Phil Nash 24615bd409 test_runner: fix ordering of test hooks
For tests with subtests the before hook was being run after the
beforeEach hook, which is the opposite to test suites and expectations.

Also, a function was being used to close over the after hooks, but at
the point it was being run the after hooks were not yet set up.

Fixes #47915

PR-URL: https://github.com/nodejs/node/pull/47931
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2023-05-11 10:10:56 +00:00
..
2023-04-24 22:32:00 +00:00
2023-04-25 16:03:51 +00:00
2023-04-24 22:32:00 +00:00