update reanimated, RNTP mocks

This commit is contained in:
Violet Caulfield
2025-04-09 09:03:12 -05:00
parent 387ce2b751
commit 3a0502c5e5
3 changed files with 8 additions and 1 deletions
+1
View File
@@ -6,6 +6,7 @@ module.exports = {
"./jest/setup.js",
"./jest/setup-carplay.js",
"./jest/setup-blurhash.js",
"./jest/setup-reanimated.js",
"./tamagui.config.ts",
],
extensionsToTreatAsEsm: ['.ts', '.tsx'],
+6
View File
@@ -0,0 +1,6 @@
jest.mock('react-native-reanimated', () => ({
...jest.requireActual('react-native-reanimated/mock'),
createAnimatedPropAdapter: jest.fn,
useReducedMotion: jest.fn,
LayoutAnimationConfig: jest.fn,
}));
+1 -1
View File
@@ -31,7 +31,7 @@ jest.mock('react-native-track-player', () => {
}),
registerEventHandler: jest.fn(),
registerPlaybackService: jest.fn(),
setupPlayer: jest.fn(),
setupPlayer: jest.fn().mockResolvedValue(undefined),
destroy: jest.fn(),
updateOptions: jest.fn(),
reset: jest.fn(),