test: allow running with `NODE_PENDING_DEPRECATION`
Make the test for pending deprecations work when the env var is set during the whole test suite run.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
test