diff --git a/package.json b/package.json index c6397d5..2e6fefb 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "tap": "^16.0.1" }, "dependencies": { - "@npmcli/promise-spawn": "^4.0.0", + "@npmcli/promise-spawn": "^5.0.0", "lru-cache": "^7.4.4", "mkdirp": "^1.0.4", "npm-pick-manifest": "^8.0.0", diff --git a/test/spawn.js b/test/spawn.js index 57a4ca3..da09581 100644 --- a/test/spawn.js +++ b/test/spawn.js @@ -44,7 +44,7 @@ t.test('argument test for allowReplace', async t => { t.test('retries', t => { const logs = [] process.on('log', (...log) => logs.push(log)) - const gitMessage = 'Connection timed out\n' + const gitMessage = 'Connection timed out' const te = resolve(repo, 'transient-error.js') fs.writeFileSync(te, ` console.error('${gitMessage.trim()}') @@ -100,7 +100,7 @@ process.exit(1) }) t.test('missing pathspec', t => { - const gitMessage = 'error: pathspec \'foo\' did not match any file(s) known to git\n' + const gitMessage = 'error: pathspec \'foo\' did not match any file(s) known to git' const te = resolve(repo, 'pathspec-error.js') fs.writeFileSync(te, ` console.error("${gitMessage.trim()}") @@ -124,7 +124,7 @@ process.exit(1) }) t.test('unknown git error', t => { - const gitMessage = 'error: something really bad happened to git\n' + const gitMessage = 'error: something really bad happened to git' const te = resolve(repo, 'unknown-error.js') fs.writeFileSync(te, ` console.error("${gitMessage.trim()}")