Skip to content

Commit

Permalink
react-native: avoid Haste module naming collision warnings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jakubgs committed Apr 21, 2020
1 parent e0b5bfc commit 34c30e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rn-cli.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ const blacklist = require('metro').createBlacklist;

module.exports = {
getBlacklistRE: function() {
return blacklist([/desktop\/js_files\/.*/]);
return blacklist([/(desktop|mobile)\/js_files\/.*/]);
}
};

0 comments on commit 34c30e0

Please sign in to comment.