From 34c30e0cb9bf5eb82a00a34169759c4cae151ac0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Tue, 21 Apr 2020 13:44:48 +0200 Subject: [PATCH] react-native: avoid Haste module naming collision warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Warnings like this: jest-haste-map: Haste module naming collision: StatusIm-Mobile The following files share their name; please adjust your hasteImpl: * /mobile/js_files/package.json * /package.json Signed-off-by: Jakub SokoĊ‚owski --- rn-cli.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rn-cli.config.js b/rn-cli.config.js index 40fec8e6fe..3cd8b230c0 100644 --- a/rn-cli.config.js +++ b/rn-cli.config.js @@ -2,6 +2,6 @@ const blacklist = require('metro').createBlacklist; module.exports = { getBlacklistRE: function() { - return blacklist([/desktop\/js_files\/.*/]); + return blacklist([/(desktop|mobile)\/js_files\/.*/]); } };