Skip to content

Commit abcd590

Browse files
cpojerfacebook-github-bot-8
authored andcommitted
Remove the default for modulePathIgnorePatterns
Reviewed By: DmitrySoshnikov Differential Revision: D2577615 fb-gh-sync-id: 0811d6c5201d51f8095fca5eb8aedfa56b611015
1 parent d96b251 commit abcd590

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* Use the current working directory as root when passing a jest config from
55
the command line.
66
* Updated the React examples and getting started guide
7-
* Set `modulePathIgnorePatterns` to `node_modules` by default.
87
* Modules now receive a `module.parent` field so unmocked modules don't assume
98
they are run directly any longer.
109

docs/API.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ An array of file extensions your modules use. If you require modules without spe
324324
If you are using CoffeeScript this should be `['js', 'json', 'coffee', 'litcoffee', 'coffee.md']`
325325

326326
### `config.modulePathIgnorePatterns` [array<string>]
327-
(default: `["/node_modules/"]`)
327+
(default: `[]`)
328328

329329
An array of regexp pattern strings that are matched against all module paths before those paths are to be considered 'visible' to the module loader. If a given module's path matches any of the patterns, it will not be `require()`-able in the test environment.
330330

src/lib/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var DEFAULT_CONFIG_VALUES = {
2727
moduleFileExtensions: ['js', 'json'],
2828
moduleLoader: require.resolve('../HasteModuleLoader/HasteModuleLoader'),
2929
preprocessorIgnorePatterns: [],
30-
modulePathIgnorePatterns: ['/node_modules/'],
30+
modulePathIgnorePatterns: [],
3131
moduleNameMapper: [],
3232
testDirectoryName: '__tests__',
3333
testEnvironment: require.resolve('../JSDomEnvironment'),

0 commit comments

Comments
 (0)