From 585d41b30aa8992a0c7c2c97a562191e48a29250 Mon Sep 17 00:00:00 2001 From: zhongwuzw Date: Tue, 12 Mar 2019 22:28:10 -0700 Subject: [PATCH] Add DerivedData to BLACKLISTED_PATTERNS for haste paths (#23807) Summary: Each time, when I run `iOS` tests like `RNTesterIntegrationTests`, Xcode will copy the bundle in `DerivedData` directory, and we added `RNTesterUnitTestsBundle.js` to bundle, so it leads `Haste module naming collision`, I think we can add `DerivedData` directory to blacklist. c7d7dcbd-6507-481a-a8ef-64f16fec3a6f [iOS] [Fixed] - Add DerivedData to BLACKLISTED_PATTERNS for haste paths Pull Request resolved: https://github.com/facebook/react-native/pull/23807 Differential Revision: D14436103 Pulled By: cpojer fbshipit-source-id: fa4bbd87d429f70167253aa38ff20049c9df58b4 --- jest/hasteImpl.js | 1 + 1 file changed, 1 insertion(+) diff --git a/jest/hasteImpl.js b/jest/hasteImpl.js index cee692a770..aa1e76d050 100644 --- a/jest/hasteImpl.js +++ b/jest/hasteImpl.js @@ -60,6 +60,7 @@ const BLACKLISTED_PATTERNS /*: Array */ = [ /.*[\\\/]__(mocks|tests)__[\\\/].*/, /^Libraries[\\\/]Animated[\\\/]src[\\\/]polyfills[\\\/].*/, /^Libraries[\\\/]Renderer[\\\/]fb[\\\/].*/, + /DerivedData[\\\/].*/, ]; const WHITELISTED_PREFIXES /*: Array */ = [