Skip to content

Commit 59b27ca

Browse files
committed
ok
1 parent ad4c279 commit 59b27ca

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/socket-npm.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ for (const npmDir of versions) {
1919
const npmPath = path.join(npmFixturesPath, npmDir)
2020
const npmBinPath = path.join(npmPath, NODE_MODULES, '.bin')
2121

22-
console.log(`Running \`npm install --silent\` for ${npmDir}`)
22+
console.log(`Running \`npm install --silent\` for ${npmDir} in ${process.version}`)
2323
spawnSync(NPM, ['install', '--silent'], {
2424
cwd: npmPath,
2525
signal: abortSignal,
@@ -33,6 +33,7 @@ for (const npmDir of versions) {
3333

3434
it('should bail on new typosquat', async () => {
3535
await new Promise<void>((resolve, reject) => {
36+
console.log(`Now running npm i bowser, ${npmDir}, ${process.version}`)
3637
const spawnPromise = spawn(
3738
// Lazily access constants.execPath.
3839
constants.execPath,
@@ -71,7 +72,7 @@ for (const npmDir of versions) {
7172

7273
spawnPromise.catch(() => {
7374
spawnPromise.process.kill('SIGINT')
74-
reject()
75+
reject(new Error('Received a SIGINT'))
7576
})
7677
})
7778

0 commit comments

Comments
 (0)