diff --git a/index.js b/index.js index 1ea6cd2..1bb6666 100644 --- a/index.js +++ b/index.js @@ -104,7 +104,7 @@ class TestExclude { globSync(cwd = this.cwd) { const globPatterns = getExtensionPattern(this.extension || []); - const globOptions = { cwd, nodir: true, dot: true }; + const globOptions = { cwd, nodir: true, dot: true, posix: true }; /* If we don't have any excludeNegated then we can optimize glob by telling * it to not iterate into unwanted directory trees (like node_modules). */ if (this.excludeNegated.length === 0) { @@ -118,7 +118,7 @@ class TestExclude { async glob(cwd = this.cwd) { const globPatterns = getExtensionPattern(this.extension || []); - const globOptions = { cwd, nodir: true, dot: true }; + const globOptions = { cwd, nodir: true, dot: true, posix: true }; /* If we don't have any excludeNegated then we can optimize glob by telling * it to not iterate into unwanted directory trees (like node_modules). */ if (this.excludeNegated.length === 0) {