20 lines
405 B
JavaScript
20 lines
405 B
JavaScript
try {
|
|
require("react-native-gesture-handler/jestSetup");
|
|
} catch {
|
|
// Package may be absent in minimal test environments
|
|
}
|
|
|
|
jest.mock(
|
|
"react-native-reanimated",
|
|
() => {
|
|
const Reanimated = require("react-native-reanimated/mock");
|
|
Reanimated.default.call = () => {};
|
|
return Reanimated;
|
|
},
|
|
{ virtual: true },
|
|
);
|
|
|
|
jest.mock("@expo/vector-icons", () => ({
|
|
Ionicons: "Ionicons",
|
|
}));
|