Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"scripts": {
"pretest": "jshint .",
"test": "mocha"
"test": "mocha --timeout 5000"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -40,7 +40,7 @@
"devDependencies": {
"bluebird": "^1.2.1",
"chai": "^1.9.1",
"debug": "^0.8.0",
"debug": "^2.2.0",
"fs.extra": "^1.2.1",
"jshint": "^2.5.0",
"loopback": "^2.25.0",
Expand Down
5 changes: 4 additions & 1 deletion test/lb-ng.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,15 @@ describe('lb-ng', function() {
//-- Helpers --

function runLbNg() {
// empty object for env so it does not inherit env-vars from parent process
// this avoids debug messages affecting the stdout
var options = {env:{}};
var argv = [process.execPath, require.resolve('../bin/lb-ng')]
.concat(Array.prototype.slice.call(arguments))
.map(JSON.stringify)
.join(' ');
debug('--EXECFILE[%s]--', argv);
return exec(argv)
return exec(argv, options)
.then(function(args) {
debug('--STDOUT--\n%s\n--STDERR--\n%s\n--END--', args[0], args[1]);
return args;
Expand Down