From c972a5c298d8da26d583bbfa0f0713ef382692ba Mon Sep 17 00:00:00 2001 From: Alexey Kureev Date: Tue, 26 Jun 2018 18:53:42 -0700 Subject: [PATCH] Fix: D8450498 breaks test_end_to_end job (#19910) Summary: Closes https://github.com/facebook/react-native/pull/19910 Because of the way react-native local-cli communicates with metro, getWatchFolders function was always returning an empty array that triggered an error. Reviewed By: hramos Differential Revision: D8650733 fbshipit-source-id: 502ca469cdbfa04dab5127c1e330dc1d34fc02f8 --- local-cli/util/Config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/local-cli/util/Config.js b/local-cli/util/Config.js index bc7ba4716..2e78e5041 100644 --- a/local-cli/util/Config.js +++ b/local-cli/util/Config.js @@ -78,6 +78,7 @@ const Config = { ], getProjectRoots, getPolyfills, + getWatchFolders: () => [getProjectPath()], getResolverMainFields: () => ['react-native', 'browser', 'main'], getTransformModulePath: () => require.resolve('metro/src/reactNativeTransformer'),