Skip to content

Commit 6f043b9

Browse files
committed
test: enable shell option, fixing pnpm ENOENT errors
1 parent 6e2174c commit 6f043b9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ for (const projectName of fs.readdirSync(playgroundDir)) {
1414
console.log(`Running unit tests in ${projectName}`)
1515
const unitTestResult = spawnSync('pnpm', ['test:unit:ci'], {
1616
cwd: path.resolve(playgroundDir, projectName),
17-
stdio: 'inherit'
17+
stdio: 'inherit',
18+
shell: true
1819
})
1920
if (unitTestResult.status !== 0) {
2021
throw new Error(`Unit tests failed in ${projectName}`)
@@ -23,7 +24,8 @@ for (const projectName of fs.readdirSync(playgroundDir)) {
2324
console.log(`Running e2e tests in ${projectName}`)
2425
const e2eTestResult = spawnSync('pnpm', ['test:e2e:ci'], {
2526
cwd: path.resolve(playgroundDir, projectName),
26-
stdio: 'inherit'
27+
stdio: 'inherit',
28+
shell: true
2729
})
2830
if (e2eTestResult.status !== 0) {
2931
throw new Error(`E2E tests failed in ${projectName}`)

0 commit comments

Comments
 (0)