From 5bf5300378fe0d2d4e4c05f28b5059f232e2ac01 Mon Sep 17 00:00:00 2001 From: Luiz Pires Date: Tue, 24 Oct 2023 20:52:37 -0300 Subject: [PATCH] fix: make ControlledSelect testable --- __mocks__/@gorhom/bottom-sheet.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/__mocks__/@gorhom/bottom-sheet.ts b/__mocks__/@gorhom/bottom-sheet.ts index 34f938a7..7aef8b53 100644 --- a/__mocks__/@gorhom/bottom-sheet.ts +++ b/__mocks__/@gorhom/bottom-sheet.ts @@ -1 +1,6 @@ -module.exports = require('@gorhom/bottom-sheet/mock'); +const react = require('react-native'); +const originalMock = require('@gorhom/bottom-sheet/mock'); + +originalMock.BottomSheetFlatList = react.FlatList; + +module.exports = originalMock;