From a0db89c2edea09ab53f94ee16f172f6f8eb7caf1 Mon Sep 17 00:00:00 2001 From: osher Date: Mon, 22 Feb 2021 14:45:59 +0200 Subject: [PATCH] Fix Windows symlinks messing up outside dir closes #46 --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index aecb72d..0c8477b 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,6 @@ 'use strict'; +const fs = require('fs'); const path = require('path'); const { promisify } = require('util'); const glob = promisify(require('glob')); @@ -50,6 +51,8 @@ class TestExclude { this.exclude = prepGlobPatterns([].concat(this.exclude)); + this.cwd = fs.realpathSync(this.cwd); + this.handleNegation(); }