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 e10c618 commit 9972ab4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/index.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const execa = require('execa');
const { join, resolve } = require('path');
const { existsSync, unlinkSync, writeFileSync, readFileSync } = require('fs');
const { forkRun } = require('../lib/process');
const { execa } = require('./util');

const mtscPath = join(__dirname, '../bin/mwtsc.js');

Expand Down
8 changes: 8 additions & 0 deletions test/util.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const cp = require('child_process');

function execa(...args) {
// mock execa
return cp.spawn(...args);
}

exports.execa = execa;

0 comments on commit 9972ab4

Please sign in to comment.