You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
Run tests only with the js parser instead of hiredis and js parser from now on
This removes the optional-dev-dependency as this is not needed from now on anymore
This commit is contained in:
@@ -21,7 +21,6 @@
|
|||||||
"coverage": "nyc report --reporter=html",
|
"coverage": "nyc report --reporter=html",
|
||||||
"benchmark": "node benchmarks/multi_bench.js",
|
"benchmark": "node benchmarks/multi_bench.js",
|
||||||
"test": "nyc --cache mocha ./test/*.js ./test/commands/*.js --timeout=8000",
|
"test": "nyc --cache mocha ./test/*.js ./test/commands/*.js --timeout=8000",
|
||||||
"pretest": "optional-dev-dependency hiredis",
|
|
||||||
"posttest": "eslint . --fix"
|
"posttest": "eslint . --fix"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -40,7 +39,6 @@
|
|||||||
"metrics": "^0.1.9",
|
"metrics": "^0.1.9",
|
||||||
"mocha": "^2.3.2",
|
"mocha": "^2.3.2",
|
||||||
"nyc": "^6.0.0",
|
"nyc": "^6.0.0",
|
||||||
"optional-dev-dependency": "^1.1.0",
|
|
||||||
"tcp-port-used": "^0.1.2",
|
"tcp-port-used": "^0.1.2",
|
||||||
"uuid": "^2.0.1",
|
"uuid": "^2.0.1",
|
||||||
"win-spawn": "^2.0.0"
|
"win-spawn": "^2.0.0"
|
||||||
|
@@ -163,10 +163,11 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
var parsers = ['javascript'];
|
var parsers = ['javascript'];
|
||||||
var protocols = ['IPv4'];
|
var protocols = ['IPv4'];
|
||||||
try {
|
// The js parser works the same as the hiredis parser, just activate this if you want to be on the safe side
|
||||||
require('hiredis');
|
// try {
|
||||||
parsers.push('hiredis');
|
// require('hiredis');
|
||||||
} catch (e) {/* ignore eslint */}
|
// parsers.push('hiredis');
|
||||||
|
// } catch (e) {/* ignore eslint */}
|
||||||
if (process.platform !== 'win32') {
|
if (process.platform !== 'win32') {
|
||||||
protocols.push('IPv6', '/tmp/redis.sock');
|
protocols.push('IPv6', '/tmp/redis.sock');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user