test: support recursive testing files
This PR adds support for recursive testing, and once merged, it will become the groundwork for a hopeful reorganization of the test files currently used in the Node.js repository.
Reopen of #53309, as conflicts caused weird CI failures.