We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f992ba4 commit 280e76aCopy full SHA for 280e76a
test/socket-npm.test.ts
@@ -46,7 +46,17 @@ for (const npmDir of versions) {
46
)
47
spawnPromise.process.stdout.on('data', (buffer: Buffer) => {
48
console.log(buffer.toString('utf8'))
49
- });
+ // changed 13 packages, and audited 176 packages in 3s
50
+ if (
51
+ /changed .* packages, and audited .* packages in/.test(
52
+ buffer.toString('utf8')
53
+ )
54
+ ) {
55
+ reject(
56
+ 'It seems npm ran anyways so the test failed to invoke socket'
57
58
+ }
59
+ })
60
61
spawnPromise.process.stderr.on('data', (buffer: Buffer) => {
62
console.error(buffer.toString('utf8'))
0 commit comments