test: refactor test/es-module/test-esm-resolve-type
#43178
+25
−31
Merged