From ec90ad127f3e862425732e00e68abfeb47cd88b2 Mon Sep 17 00:00:00 2001 From: Christoph Nakazawa Date: Wed, 24 Apr 2019 06:47:16 -0700 Subject: [PATCH] Fix React Native tests Summary: At Facebook we do not install the cli or the packages around it. I added some workaround for that in D15044762 but failed to run Jest without cache to test it and it seems like it didn't run on sandcastle properly either (wtf?). Either way, this adds back the `ios` and `android` reducers for `hasteImpl` to run the tests properly again. Reviewed By: rubennorte Differential Revision: D15063152 fbshipit-source-id: 2f1fefe664f02d5f2f5e65b75ac1e0c5b813a343 --- jest/hasteImpl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jest/hasteImpl.js b/jest/hasteImpl.js index c2a4ae834..ffbb05358 100644 --- a/jest/hasteImpl.js +++ b/jest/hasteImpl.js @@ -17,7 +17,7 @@ const cli = require('@react-native-community/cli'); const {haste} = (cli.loadConfig && cli.loadConfig()) || { haste: { providesModuleNodeModules: [], - platforms: [], + platforms: ['ios', 'android'], }, };