in Tasks/codepush-release/test.js [32:43]
function stubExecToFailOnCommandType(commandType) {
// If commandType not specified, all will succeed.
var execStub = sinon.stub(global, "exec").callsFake((command) => {
return {
code: !commandType || command.indexOf(commandType) == -1 ? 0 : 1,
output: command
}
});
spies.push(global.exec);
return execStub;
}