diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/lib/commands/edit.js | 3 | ||||
-rw-r--r-- | test/lib/commands/restart.js | 2 | ||||
-rw-r--r-- | test/lib/commands/start.js | 2 | ||||
-rw-r--r-- | test/lib/commands/stop.js | 2 | ||||
-rw-r--r-- | test/lib/commands/test.js | 2 |
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') |