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

Commit

Permalink
Revert "Configuration: exclude nested node_modules by default" (#2222)
Browse files Browse the repository at this point in the history
This reverts commit 908bd20.
  • Loading branch information
hzoo committed Apr 16, 2016
1 parent 9ce1c9b commit 4a935aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/config/configuration.js
Expand Up @@ -117,7 +117,7 @@ function Configuration() {
* @protected
* @type {Array}
*/
this._defaultExcludedFileMasks = ['.git/**', '*/node_modules/**'];
this._defaultExcludedFileMasks = ['.git/**', 'node_modules/**'];

/**
* List of existing files that falls under exclusion masks.
Expand Down
4 changes: 2 additions & 2 deletions test/specs/config/configuration.js
Expand Up @@ -580,7 +580,7 @@ describe('config/configuration', function() {
preset: 'test2'
});

expect(configuration.getExcludedFileMasks()).to.deep.equal(['.git/**', '*/node_modules/**']);
expect(configuration.getExcludedFileMasks()).to.deep.equal(['.git/**', 'node_modules/**']);
});

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

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

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

0 comments on commit 4a935aa

Please sign in to comment.