We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b11faa commit 9764ee2Copy full SHA for 9764ee2
jest-setup.js
@@ -1,4 +1,4 @@
1
-import {NativeModules, AccessibilityInfo} from 'react-native';
+import {NativeModules, AccessibilityInfo, Animated} from 'react-native';
2
global._UILIB_TESTING = true;
3
4
NativeModules.StatusBarManager = {getHeight: jest.fn()};
@@ -49,6 +49,17 @@ jest.mock('react-native', () => {
49
return reactNative;
50
});
51
52
+Animated.timing = (value, config) => ({
53
+ start: callback => {
54
+ value.setValue(config.toValue);
55
+ callback?.();
56
+ }
57
+});
58
+Animated.parallel = () => ({
59
+ start: () => {}
60
61
+Animated.event = () => {};
62
+
63
if (typeof String.prototype.replaceAll === 'undefined') {
64
// eslint-disable-next-line no-extend-native
65
String.prototype.replaceAll = function (match, replace) {
0 commit comments