Attempted to debug but realising shelljs is too complex to mock