Skip to content

Commit

Permalink
Fix Windows symlinks messing up outside dir
Browse files Browse the repository at this point in the history
  • Loading branch information
osher committed Feb 22, 2021
1 parent a5b1d07 commit a0db89c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict';

const fs = require('fs');
const path = require('path');
const { promisify } = require('util');
const glob = promisify(require('glob'));
Expand Down Expand Up @@ -50,6 +51,8 @@ class TestExclude {

this.exclude = prepGlobPatterns([].concat(this.exclude));

this.cwd = fs.realpathSync(this.cwd);

this.handleNegation();
}

Expand Down

0 comments on commit a0db89c

Please sign in to comment.