Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornlf <quitlahok@gmail.com>2022-06-23 22:46:21 +0300
committerGitHub <noreply@github.com>2022-06-23 22:46:21 +0300
commitf59a114ffe3d1f86ccb2e52a4432292ab76852cc (patch)
treef05386d91c72ec239de011129c574dc8d0e9c954 /test
parent69fa5ff515982d3bfee65f1dbadc71090c1796c9 (diff)
deps: @npmcli/run-script@4.1.3 (#5064)
* deps: @npmcli/run-script@4.1.3
Diffstat (limited to 'test')
-rw-r--r--test/lib/commands/edit.js3
-rw-r--r--test/lib/commands/restart.js2
-rw-r--r--test/lib/commands/start.js2
-rw-r--r--test/lib/commands/stop.js2
-rw-r--r--test/lib/commands/test.js2
5 files changed, 7 insertions, 4 deletions
diff --git a/test/lib/commands/edit.js b/test/lib/commands/edit.js
index bf7bd3155..b2a10be13 100644
--- a/test/lib/commands/edit.js
+++ b/test/lib/commands/edit.js
@@ -42,6 +42,7 @@ t.test('npm edit', async t => {
const [scriptShell] = makeSpawnArgs({
event: 'install',
path: npm.prefix,
+ cmd: 'testinstall',
})
spawk.spawn('testeditor', [semverPath])
spawk.spawn(
@@ -66,6 +67,7 @@ t.test('rebuild failure', async t => {
const [scriptShell] = makeSpawnArgs({
event: 'install',
path: npm.prefix,
+ cmd: 'testinstall',
})
spawk.spawn('testeditor', [semverPath])
spawk.spawn(
@@ -109,6 +111,7 @@ t.test('npm edit editor has flags', async t => {
const [scriptShell] = makeSpawnArgs({
event: 'install',
path: npm.prefix,
+ cmd: 'testinstall',
})
spawk.spawn('testeditor', ['--flag', semverPath])
spawk.spawn(
diff --git a/test/lib/commands/restart.js b/test/lib/commands/restart.js
index 428ecb6b2..bfbe715e8 100644
--- a/test/lib/commands/restart.js
+++ b/test/lib/commands/restart.js
@@ -26,7 +26,7 @@ t.test('should run restart script from package.json', async t => {
loglevel: 'silent',
},
})
- const [scriptShell] = makeSpawnArgs({ path: npm.prefix })
+ const [scriptShell] = makeSpawnArgs({ path: npm.prefix, cmd: 'node ./test-restart.js' })
const script = spawk.spawn(scriptShell, (args) => {
const lastArg = args[args.length - 1]
const rightExtension = lastArg.endsWith('.cmd') || lastArg.endsWith('.sh')
diff --git a/test/lib/commands/start.js b/test/lib/commands/start.js
index 8f0d3c38b..79c2133bc 100644
--- a/test/lib/commands/start.js
+++ b/test/lib/commands/start.js
@@ -26,7 +26,7 @@ t.test('should run start script from package.json', async t => {
loglevel: 'silent',
},
})
- const [scriptShell] = makeSpawnArgs({ path: npm.prefix })
+ const [scriptShell] = makeSpawnArgs({ path: npm.prefix, cmd: 'node ./test-start.js' })
const script = spawk.spawn(scriptShell, (args) => {
const lastArg = args[args.length - 1]
const rightExtension = lastArg.endsWith('.cmd') || lastArg.endsWith('.sh')
diff --git a/test/lib/commands/stop.js b/test/lib/commands/stop.js
index 234eb2cf4..1a4abd0b3 100644
--- a/test/lib/commands/stop.js
+++ b/test/lib/commands/stop.js
@@ -26,7 +26,7 @@ t.test('should run stop script from package.json', async t => {
loglevel: 'silent',
},
})
- const [scriptShell] = makeSpawnArgs({ path: npm.prefix })
+ const [scriptShell] = makeSpawnArgs({ path: npm.prefix, cmd: 'node ./test-stop.js' })
const script = spawk.spawn(scriptShell, (args) => {
const lastArg = args[args.length - 1]
const rightExtension = lastArg.endsWith('.cmd') || lastArg.endsWith('.sh')
diff --git a/test/lib/commands/test.js b/test/lib/commands/test.js
index ee6dae902..c6d3f530b 100644
--- a/test/lib/commands/test.js
+++ b/test/lib/commands/test.js
@@ -26,7 +26,7 @@ t.test('should run test script from package.json', async t => {
loglevel: 'silent',
},
})
- const [scriptShell] = makeSpawnArgs({ path: npm.prefix })
+ const [scriptShell] = makeSpawnArgs({ path: npm.prefix, cmd: 'node ./test-test.js' })
const script = spawk.spawn(scriptShell, (args) => {
const lastArg = args[args.length - 1]
const rightExtension = lastArg.endsWith('.cmd') || lastArg.endsWith('.sh')