Skip to content

Commit cc6b57d

Browse files
committed
whats going on here
1 parent 383a94d commit cc6b57d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/socket-npm.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@ for (const npmDir of versions) {
2222
spawnSync(NPM, ['install', '--silent'], {
2323
cwd: npmPath,
2424
signal: abortSignal,
25-
stdio: 'ignore'
25+
// stdio: 'ignore'
26+
stdio: 'pipe'
2627
})
2728

2829
describe(`Socket npm wrapper for ${npmDir}`, () => {
2930
// Lazily access constants.rootBinPath.
30-
const entryPath = path.join(constants.rootBinPath, 'cli.js')
31+
const entryPath = path.join(constants['rootBinPath'], 'cli.js')
3132

3233
it('should bail on new typosquat', async () => {
3334
await new Promise<void>((resolve, reject) => {
@@ -44,7 +45,7 @@ for (const npmDir of versions) {
4445
}
4546
)
4647

47-
spawnPromise.process.stderr.on('data', buffer => {
48+
spawnPromise.process.stderr.on('data', (buffer: Buffer) => {
4849
if (buffer.toString().includes('Possible typosquat attack')) {
4950
spawnPromise.process.kill('SIGINT')
5051
resolve()

0 commit comments

Comments
 (0)