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:
Jakub Sokołowski 2020-04-21 13:44:48 +02:00
parent e0b5bfc7d8
commit 34c30e0cb9
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 1 additions and 1 deletions

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\/.*/]);
}
};