Stop using deprecated module.parent
module.parent
is not a reliable API to infer if the current module is loaded as the entry point to run the test code, and it is deprecated in the next Node.js version.
Fixes: #15 (closed)
Refs: https://github.com/nodejs/node/pull/32217