Fix blacklist
Reviewed By: @amasad Differential Revision: D2432196
This commit is contained in:
parent
56f77ec6ee
commit
f1cf322c9e
|
@ -13,16 +13,21 @@ var path = require('path');
|
||||||
// Don't forget to everything listed here to `testConfig.json`
|
// Don't forget to everything listed here to `testConfig.json`
|
||||||
// modulePathIgnorePatterns.
|
// modulePathIgnorePatterns.
|
||||||
var sharedBlacklist = [
|
var sharedBlacklist = [
|
||||||
'website',
|
|
||||||
'node_modules/react-tools/src/React.js',
|
'node_modules/react-tools/src/React.js',
|
||||||
'node_modules/react-tools/src/renderers/shared/event/EventPropagators.js',
|
'node_modules/react-tools/src/renderers/shared/event/EventPropagators.js',
|
||||||
'node_modules/react-tools/src/renderers/shared/event/eventPlugins/ResponderEventPlugin.js',
|
'node_modules/react-tools/src/renderers/shared/event/eventPlugins/ResponderEventPlugin.js',
|
||||||
'node_modules/react-tools/src/shared/vendor/core/ExecutionEnvironment.js',
|
'node_modules/react-tools/src/shared/vendor/core/ExecutionEnvironment.js',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
// Raw unescaped patterns in case you need to use wildcards
|
||||||
|
var sharedBlacklistWildcards = [
|
||||||
|
'website\/node_modules\/.*',
|
||||||
|
];
|
||||||
|
|
||||||
var platformBlacklists = {
|
var platformBlacklists = {
|
||||||
web: [
|
web: [
|
||||||
'.ios.js'
|
'.ios.js',
|
||||||
|
'.android.js',
|
||||||
],
|
],
|
||||||
ios: [
|
ios: [
|
||||||
'.web.js',
|
'.web.js',
|
||||||
|
@ -45,6 +50,7 @@ function blacklist(platform, additionalBlacklist) {
|
||||||
(additionalBlacklist || []).concat(sharedBlacklist)
|
(additionalBlacklist || []).concat(sharedBlacklist)
|
||||||
.concat(platformBlacklists[platform] || [])
|
.concat(platformBlacklists[platform] || [])
|
||||||
.map(escapeRegExp)
|
.map(escapeRegExp)
|
||||||
|
.concat(sharedBlacklistWildcards)
|
||||||
.join('|') +
|
.join('|') +
|
||||||
')$'
|
')$'
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue