test: use fs rimraf to refresh tmpdir
Ignore the first two commits, which are just https://github.com/nodejs/node/pull/29168.
Commit: test: use fs rimraf to refresh tmpdir
If rimraf lands in core, we should use it to refresh the tmpdir in our test suite. We should be able to remove even more of this code (like spawning a child process), but I figured this was a good starting point.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines