react-native: avoid Haste module naming collision warnings

Warnings like this:

jest-haste-map: Haste module naming collision: StatusIm-Mobile
  The following files share their name; please adjust your hasteImpl:
    * <rootDir>/mobile/js_files/package.json
    * <rootDir>/package.json

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
2020-04-21 22:53:27 +02:00
parent e0b5bfc7d8
commit 34c30e0cb9
+1 -1
View File
@@ -2,6 +2,6 @@ const blacklist = require('metro').createBlacklist;
module.exports = {
getBlacklistRE: function() {
return blacklist([/desktop\/js_files\/.*/]);
return blacklist([/(desktop|mobile)\/js_files\/.*/]);
}
};