Skip to content

Commit 10f17c8

Browse files
committed
yunowin
1 parent 63180cf commit 10f17c8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/socket-cdxgen.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ const npmFixturesPath = path.join(testPath, 'socket-npm-fixtures')
1616

1717
const spawnOpts: PromiseSpawnOptions = {
1818
cwd: npmFixturesPath,
19-
signal: abortSignal
19+
signal: abortSignal,
20+
stdio: 'pipe'
2021
}
2122

2223
describe('Socket cdxgen command', async () => {
@@ -66,7 +67,7 @@ describe('Socket cdxgen command', async () => {
6667
const command = '--unknown'
6768
await expect(
6869
// Lazily access constants.execPath.
69-
() =>
70+
async () =>
7071
spawn(constants.execPath, [entryPath, 'cdxgen', command], spawnOpts)
7172
// @ts-ignore -- toHaveStderrStartWith is defined above
7273
).rejects.toHaveStderrStartWith(`Unknown argument: ${command}`)

0 commit comments

Comments
 (0)