Ensure test modules can require.resolve
absolute paths
#11943
Merged
require.resolve
absolute paths
#11943