Skip to content

Commit

Permalink
test: make npm tests work on prerelease node versions
Browse files Browse the repository at this point in the history
PR-URL: #4960
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
zkat authored and Myles Borins committed Feb 18, 2016
1 parent 976b9a9 commit f78daa6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deps/npm/test/common-tap.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ process.env.npm_config_cache = exports.npm_config_cache = npm_config_cache
process.env.npm_config_userconfig = exports.npm_config_userconfig = path.join(__dirname, 'fixtures', 'config', 'userconfig')
process.env.npm_config_globalconfig = exports.npm_config_globalconfig = path.join(__dirname, 'fixtures', 'config', 'globalconfig')
process.env.random_env_var = 'foo'
// suppress warnings about using a prerelease version of node
process.env.npm_config_node_version = process.version.replace(/-.*$/, '')

var bin = exports.bin = require.resolve('../bin/npm-cli.js')
var chain = require('slide').chain
Expand Down

0 comments on commit f78daa6

Please sign in to comment.