Skip to content
This repository was archived by the owner on Aug 11, 2022. It is now read-only.

Commit 3842317

Browse files
iarnazkat
authored andcommitted
common-tap: Suppress warnings about pre-release node versions
PR-URL: #11290 Credit: @iarna Reviewed-By: @othiym23
1 parent 556e42a commit 3842317

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/common-tap.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ process.env.npm_config_cache = exports.npm_config_cache = npm_config_cache
1818
process.env.npm_config_userconfig = exports.npm_config_userconfig = path.join(__dirname, 'fixtures', 'config', 'userconfig')
1919
process.env.npm_config_globalconfig = exports.npm_config_globalconfig = path.join(__dirname, 'fixtures', 'config', 'globalconfig')
2020
process.env.random_env_var = 'foo'
21+
// suppress warnings about using a prerelease version of node
22+
process.env.npm_config_node_version = process.version.replace(/-.*$/, '')
2123

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

0 commit comments

Comments
 (0)