Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit 4a935aa

Browse files
committed
Revert "Configuration: exclude nested node_modules by default" (#2222)
This reverts commit 908bd20.
1 parent 9ce1c9b commit 4a935aa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/config/configuration.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function Configuration() {
117117
* @protected
118118
* @type {Array}
119119
*/
120-
this._defaultExcludedFileMasks = ['.git/**', '*/node_modules/**'];
120+
this._defaultExcludedFileMasks = ['.git/**', 'node_modules/**'];
121121

122122
/**
123123
* List of existing files that falls under exclusion masks.

test/specs/config/configuration.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ describe('config/configuration', function() {
580580
preset: 'test2'
581581
});
582582

583-
expect(configuration.getExcludedFileMasks()).to.deep.equal(['.git/**', '*/node_modules/**']);
583+
expect(configuration.getExcludedFileMasks()).to.deep.equal(['.git/**', 'node_modules/**']);
584584
});
585585

586586
it('should set `fileExtensions` setting from presets', function() {
@@ -774,7 +774,7 @@ describe('config/configuration', function() {
774774

775775
it('should set default excludeFiles option', function() {
776776
configuration.load({});
777-
expect(configuration.getExcludedFileMasks()).to.deep.equal(['.git/**', '*/node_modules/**']);
777+
expect(configuration.getExcludedFileMasks()).to.deep.equal(['.git/**', 'node_modules/**']);
778778
});
779779

780780
it('should set default file extensions', function() {

0 commit comments

Comments
 (0)