Skip to content

Commit 78a9cad

Browse files
author
Srirang.Kalantri
committed
fix: tests
1 parent ec2c365 commit 78a9cad

2 files changed

Lines changed: 591 additions & 772 deletions

File tree

packages/pluggableWidgets/floating-action-button-native/src/__tests__/FloatingActionButton.spec.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ import { actionValue, dynamicValue } from "@mendix/piw-utils-internal";
66
import { NativeIcon } from "mendix";
77
import { Icon } from "mendix/components/native/Icon";
88

9+
jest.mock("react-native-reanimated", () => {
10+
const Reanimated = jest.requireActual("react-native-reanimated/lib/module/mock");
11+
12+
if (Reanimated?.default && typeof Reanimated.default === "object") {
13+
Reanimated.default.call = () => undefined;
14+
}
15+
16+
return Reanimated;
17+
});
18+
919
describe("FloatingActionButton", () => {
1020
let defaultProps: FloatingActionButtonProps<FloatingActionButtonStyle>;
1121
const secondaryButtons = [

0 commit comments

Comments
 (0)