Skip to content

Commit

Permalink
[NODEJS-1767] Make type dectection way better
Browse files Browse the repository at this point in the history
Fix env problem
  • Loading branch information
realpaul committed Oct 29, 2014
1 parent 1df75f9 commit 6b69a94
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Gruntfile.js
Expand Up @@ -20,7 +20,9 @@ module.exports = function(grunt) {
grunt.registerTask('mocha', 'mocha test', function() {
var done = this.async();
// var proc = spawn(BIN + 'mocha', ['--bail']);
var proc = spawn(BIN + 'mocha');
var proc = spawn(BIN + 'mocha', null, {
env: process.env
});
proc.stdout.on('data', function(data) {
process.stdout.write(data);
});
Expand All @@ -40,7 +42,9 @@ module.exports = function(grunt) {
// Register task of test coverage
grunt.registerTask('coverage', 'generate test coverage report', function() {
var done = this.async();
var proc = spawn(BIN + 'istanbul', ['cover', '--root', 'lib', '_mocha', '--', '-R', 'spec']);
var proc = spawn(BIN + 'istanbul', ['cover', '--root', 'lib', '_mocha', '--', '-R', 'spec'], {
env: process.env
});
proc.stdout.on('data', function(data) {
process.stdout.write(data);
});
Expand Down

0 comments on commit 6b69a94

Please sign in to comment.