test: make test-node-output-v8-warning
more flexible
#55401
+8
−3
Merged