diff --git a/src/mock.ts b/src/mock.ts index 4a929968851f..cdc5e966e52b 100644 --- a/src/mock.ts +++ b/src/mock.ts @@ -17,6 +17,11 @@ import { ColorSpace, Extrapolation, SharedTransitionType, + withReanimatedTimer, + advanceAnimationByTime, + advanceAnimationByFrame, + setUpTests, + getAnimatedStyle, } from './reanimated2'; import { View as ViewRN, @@ -391,7 +396,13 @@ const pluginUtils = { // getUseOfValueInStyleWarning: ADD ME IF NEEDED }; -// const jestUtils = ADD ME IF NEEDED +const jestUtils = { + withReanimatedTimer, + advanceAnimationByTime, + advanceAnimationByFrame, + setUpTests, + getAnimatedStyle, +}; const LayoutAnimationConfig = { // LayoutAnimationConfig: ADD ME IF NEEDED @@ -431,6 +442,7 @@ const Reanimated = { ...isSharedValue, ...commonTypes, ...pluginUtils, + ...jestUtils, ...LayoutAnimationConfig, ...mappers, };