Skip to content

Commit

Permalink
exclude hidden files from internal option
Browse files Browse the repository at this point in the history
  • Loading branch information
sat0yu committed Sep 22, 2018
1 parent 9392cef commit 235344b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/jest-haste-map/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ type InternalOptions = {
extensions: Array<string>,
forceNodeFilesystemAPI: boolean,
hasteImplModulePath?: string,
hiddenFiles: Array<string>,
ignorePattern: HasteRegExp,
maxWorkers: number,
mocksPattern: ?RegExp,
Expand Down Expand Up @@ -231,7 +230,6 @@ class HasteMap extends EventEmitter {
extensions: options.extensions,
forceNodeFilesystemAPI: !!options.forceNodeFilesystemAPI,
hasteImplModulePath: options.hasteImplModulePath,
hiddenFiles: ['.gitignore', '.hgignore'],
ignorePattern: options.ignorePattern,
maxWorkers: options.maxWorkers,
mocksPattern: options.mocksPattern
Expand Down Expand Up @@ -689,7 +687,8 @@ class HasteMap extends EventEmitter {
: os.platform() === 'darwin'
? sane.FSEventsWatcher
: sane.NodeWatcher;
const {extensions, hiddenFiles, ignorePattern} = this._options;
const {extensions, ignorePattern} = this._options;
const hiddenFiles = ['.gitignore', '.hgignore'];
let changeQueue = Promise.resolve();
let eventsQueue = [];
// We only need to copy the entire haste map once on every "frame".
Expand Down

0 comments on commit 235344b

Please sign in to comment.