Skip to content

Commit b26a039

Browse files
committed
Revert "use {dot: true} for all micromatches"
This reverts commit 592d50b.
1 parent 592d50b commit b26a039

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

packages/jest-cli/src/run_jest.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ export default (async function runJest({
176176
!micromatch(
177177
[path.relative(globalConfig.rootDir, filename)],
178178
globalConfig.collectCoverageFrom,
179-
{dot: true},
180179
).length
181180
) {
182181
return false;

packages/jest-haste-map/src/haste_fs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default class HasteFS {
5858
const files = new Set();
5959
for (const file in this._files) {
6060
const filePath = root ? path.relative(root, file) : file;
61-
if (micromatch([filePath], globs, {dot: true}).length) {
61+
if (micromatch([filePath], globs).length) {
6262
files.add(file);
6363
}
6464
}

packages/jest-message-util/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ const formatPaths = (config: StackTraceConfig, relativeTestPath, line) => {
216216
if (
217217
(config.testMatch &&
218218
config.testMatch.length &&
219-
micromatch(filePath, config.testMatch, {dot: true})) ||
219+
micromatch(filePath, config.testMatch)) ||
220220
filePath === relativeTestPath
221221
) {
222222
filePath = chalk.reset.cyan(filePath);

packages/jest-runtime/src/should_instrument.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default function shouldInstrument(
3030
if (
3131
config.forceCoverageMatch &&
3232
config.forceCoverageMatch.length &&
33-
micromatch.any(filename, config.forceCoverageMatch, {dot: true})
33+
micromatch.any(filename, config.forceCoverageMatch)
3434
) {
3535
return true;
3636
}
@@ -42,7 +42,7 @@ export default function shouldInstrument(
4242
if (
4343
config.testMatch &&
4444
config.testMatch.length &&
45-
micromatch.any(filename, config.testMatch, {dot: true})
45+
micromatch.any(filename, config.testMatch)
4646
) {
4747
return false;
4848
}
@@ -63,7 +63,6 @@ export default function shouldInstrument(
6363
!micromatch(
6464
[path.relative(config.rootDir, filename)],
6565
options.collectCoverageFrom,
66-
{dot: true},
6766
).length
6867
) {
6968
return false;

scripts/build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,14 @@ function buildFile(file, silent) {
125125
const destPath = getBuildPath(file, BUILD_DIR);
126126

127127
mkdirp.sync(path.dirname(destPath));
128-
if (micromatch.isMatch(file, IGNORE_PATTERN, {dot: true})) {
128+
if (micromatch.isMatch(file, IGNORE_PATTERN)) {
129129
silent ||
130130
process.stdout.write(
131131
chalk.dim(' \u2022 ') +
132132
path.relative(PACKAGES_DIR, file) +
133133
' (ignore)\n'
134134
);
135-
} else if (!micromatch.isMatch(file, JS_FILES_PATTERN, {dot: true})) {
135+
} else if (!micromatch.isMatch(file, JS_FILES_PATTERN)) {
136136
fs.createReadStream(file).pipe(fs.createWriteStream(destPath));
137137
silent ||
138138
process.stdout.write(

0 commit comments

Comments
 (0)