Skip to content

Commit

Permalink
Add mocks for worklet functions
Browse files Browse the repository at this point in the history
  • Loading branch information
albullington committed Mar 27, 2024
1 parent 34b3049 commit dd11665
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/jest.setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ jest.mock( "vision-camera-plugin-inatvision", () => ( {
} ) );

jest.mock( "react-native-worklets-core", () => ( {
useSharedValue: jest.fn(),
useWorklet: jest.fn(),
Worklets: {
createRunInJsFn: jest.fn()
}
Expand Down

0 comments on commit dd11665

Please sign in to comment.