We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6029598 commit 06f5c29Copy full SHA for 06f5c29
test/unit.js
@@ -30,7 +30,8 @@ function testAll(pkgs) {
30
31
function testOne(name) {
32
process.env.FORCE_COLOR = 1;
33
- const result = spawnSync('npm', ['run', 'test'], {
+ const command = process.platform === 'win32' ? 'npm.cmd' : 'npm';
34
+ const result = spawnSync(command, ['run', 'test'], {
35
cwd: path.join(process.cwd(), 'packages', name),
36
env: process.env,
37
stdio: 'inherit'
0 commit comments