Skip to content

Commit

Permalink
Don't stub out npm version
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Mar 2, 2020
1 parent d8bd0d5 commit 769a628
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/stub/shell.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const Shell = require('../../lib/shell');

module.exports = class ShellStub extends Shell {
exec(command) {
if (/^(npm|git fetch)/.test(command)) {
if (/^(npm (ping|publish|show|whoami)|git fetch)/.test(command)) {
debug(command);
return Promise.resolve();
}
Expand Down

0 comments on commit 769a628

Please sign in to comment.