in my node.js app I have a function that should rename directory path when the user do a http put request. Anyway this function uses shelljs and when I test it manually it works but when I try to test in mocha on my mocked filesystem then shelljs run all the shell commands on my real file system.
How can I fix it?
btw I use mock-fs for this and I am very new to unit tests.
thanks
Amit