diff options
Diffstat (limited to 'main/npm/smoke-tests-npm-location.patch')
-rw-r--r-- | main/npm/smoke-tests-npm-location.patch | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/main/npm/smoke-tests-npm-location.patch b/main/npm/smoke-tests-npm-location.patch deleted file mode 100644 index a0b2051c6ae..00000000000 --- a/main/npm/smoke-tests-npm-location.patch +++ /dev/null @@ -1,23 +0,0 @@ -Allow to specify custom npm location for smoke-tests, so we can test npm -without development dependencies involved. - ---- a/smoke-tests/index.js -+++ b/smoke-tests/index.js -@@ -36,7 +36,7 @@ - }) - const localPrefix = resolve(path, 'project') - const userconfigLocation = resolve(path, '.npmrc') --const npmLocation = resolve(__dirname, '../bin/npm-cli.js') -+const npmLocation = resolve(__dirname, process.env.NPM_LOCATION + '/bin/npm-cli.js' || '../bin/npm-cli.js') - const cacheLocation = resolve(path, 'cache') - const binLocation = resolve(path, 'bin') - const env = { -@@ -116,7 +116,7 @@ - t.equal(pkg.version, '1.0.0', 'should have expected generated version') - }) - --t.test('npm (no args)', async t => { -+t.skip('npm (no args)', async t => { - const cmd = `"${process.execPath}" "${npmLocation}" --no-audit --no-update-notifier` - const cmdRes = await execAsync(cmd, { cwd: localPrefix, env }).catch(err => { - t.equal(err.code, 1, 'should exit with error code') |