Skip to content

Commit

Permalink
chore: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
czy88840616 committed May 3, 2024
1 parent 9972ab4 commit 9978fda
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/util.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
const cp = require('child_process');

function execa(...args) {
function execa(cmd, args, options) {
// mock execa
return cp.spawn(...args);
return cp.spawn(cmd, args, Object.assign({
cwd: __dirname,
stdio: 'ignore',
}, options));
}

exports.execa = execa;

0 comments on commit 9978fda

Please sign in to comment.