Skip to content

Commit 06f5c29

Browse files
author
ITShengの台式机
committed
支持 windows
1 parent 6029598 commit 06f5c29

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/unit.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ function testAll(pkgs) {
3030

3131
function testOne(name) {
3232
process.env.FORCE_COLOR = 1;
33-
const result = spawnSync('npm', ['run', 'test'], {
33+
const command = process.platform === 'win32' ? 'npm.cmd' : 'npm';
34+
const result = spawnSync(command, ['run', 'test'], {
3435
cwd: path.join(process.cwd(), 'packages', name),
3536
env: process.env,
3637
stdio: 'inherit'

0 commit comments

Comments
 (0)