From: Haoqun Jiang Date: Mon, 23 Aug 2021 11:54:24 +0000 (+0800) Subject: test: enable `shell` option, fixing pnpm ENOENT errors X-Git-Tag: v3.0.0-beta.1~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f043b9036ae6e21fd126660460d75b25c1dff2d;p=thirdparty%2Fvuejs%2Fcreate-vue.git test: enable `shell` option, fixing pnpm ENOENT errors --- diff --git a/test.js b/test.js index 785ad715..6746a2f8 100644 --- a/test.js +++ b/test.js @@ -14,7 +14,8 @@ for (const projectName of fs.readdirSync(playgroundDir)) { console.log(`Running unit tests in ${projectName}`) const unitTestResult = spawnSync('pnpm', ['test:unit:ci'], { cwd: path.resolve(playgroundDir, projectName), - stdio: 'inherit' + stdio: 'inherit', + shell: true }) if (unitTestResult.status !== 0) { throw new Error(`Unit tests failed in ${projectName}`) @@ -23,7 +24,8 @@ for (const projectName of fs.readdirSync(playgroundDir)) { console.log(`Running e2e tests in ${projectName}`) const e2eTestResult = spawnSync('pnpm', ['test:e2e:ci'], { cwd: path.resolve(playgroundDir, projectName), - stdio: 'inherit' + stdio: 'inherit', + shell: true }) if (e2eTestResult.status !== 0) { throw new Error(`E2E tests failed in ${projectName}`)