I wanted to create a test but I don't know how to stub process.env.HOME, process.env.APPDATA in mocha, in fact, I haven't experienced doing testing in javascript,
I read a lot and I think jest it's a good option to go, what do you think?
This test will fail when the /home/itox/ changes in another machine. ex. into the CI.
do you know how to solve it?
I wanted to create a test but I don't know how to stub
process.env.HOME
,process.env.APPDATA
in mocha, in fact, I haven't experienced doing testing in javascript,I read a lot and I think jest it's a good option to go, what do you think?
This test will fail when the
/home/itox/
changes in another machine. ex. into the CI. do you know how to solve it?