Skip to content

Commit

Permalink
Ensure the tmp dir exists on in-process re-runs issue caught in [#4963]
Browse files Browse the repository at this point in the history
Work around for: joliss/node-quick-temp#8
  • Loading branch information
stefanpenner committed Nov 20, 2015
1 parent ab28534 commit 420cc74
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/commands/test.js
Expand Up @@ -7,6 +7,7 @@ var SilentError = require('silent-error');
var path = require('path');
var win = require('../utilities/windows-admin');
var existsSync = require('exists-sync');
var mkdirp = require('mkdirp');

var defaultPort = 7357;

Expand Down Expand Up @@ -44,6 +45,8 @@ module.exports = Command.extend({
},

tmp: function() {
// workaround for: https://github.com/joliss/node-quick-temp/issues/8<Paste>
mkdirp('tmp');
return this.quickTemp.makeOrRemake(this, '-testsDist');
},

Expand Down

0 comments on commit 420cc74

Please sign in to comment.