From 9b3f5f4336f11035d778c398295945ac91ad659b Mon Sep 17 00:00:00 2001 From: Brett Weissbart Date: Tue, 3 Jul 2018 13:13:35 -0400 Subject: [PATCH] fix(fsshopify): fix shopifydatasource test The new version of react-native-payments introduced by Greenkeeper uses ReactNative.requireNativeComponent to import native UI widgets. Because the ShopifyDataSource test mocks react-native, we need to mock this method as well to prevent the test from erroring. --- packages/fsshopify/src/__tests__/ShopifyDataSource.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/fsshopify/src/__tests__/ShopifyDataSource.test.ts b/packages/fsshopify/src/__tests__/ShopifyDataSource.test.ts index ecafa31669..6e9cc77a2c 100644 --- a/packages/fsshopify/src/__tests__/ShopifyDataSource.test.ts +++ b/packages/fsshopify/src/__tests__/ShopifyDataSource.test.ts @@ -4,6 +4,7 @@ const mockDirName = __dirname; jest.mock('react-native', () => { return { default: {}, + requireNativeComponent: () => false, NativeModules: { ReactNativePayments: {} },