Switched out platform-specific process.env.HOME for platform agnostic os.homedir().
Haven't adjusted unit tests, as they still feel appropriate. You could make the argument that we should mock the response from os.homedir() instead of allowing a real call to the underlay environment variables, but that would require some fairly significant refactoring of the tests.
Type of Change
Resolves
Describe Changes
Switched out platform-specific
process.env.HOME
for platform agnosticos.homedir()
.Haven't adjusted unit tests, as they still feel appropriate. You could make the argument that we should mock the response from
os.homedir()
instead of allowing a real call to the underlay environment variables, but that would require some fairly significant refactoring of the tests.