From 6f043b9036ae6e21fd126660460d75b25c1dff2d Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Mon, 23 Aug 2021 19:54:24 +0800 Subject: [PATCH] test: enable `shell` option, fixing pnpm ENOENT errors --- test.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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}`) -- 2.39.5