Migrate to new ImageManipulator API

This commit is contained in:
Dan Abramov
2024-12-13 23:17:17 +00:00
parent ca8ca903b2
commit 2c0b7583a8
5 changed files with 57 additions and 200 deletions
-9
View File
@@ -44,15 +44,6 @@ jest.mock('expo-file-system', () => ({
deleteAsync: jest.fn(),
}))
jest.mock('expo-image-manipulator', () => ({
manipulateAsync: jest.fn().mockResolvedValue({
uri: 'file://resized-image',
}),
SaveFormat: {
JPEG: 'jpeg',
},
}))
jest.mock('expo-camera', () => ({
Camera: {
useCameraPermissions: jest.fn(() => [true]),