1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-23 22:36:32 +02:00

Chore: Mobile: Fix expo-related warnings in tests (#13260)

This commit is contained in:
Henry Heino
2025-09-19 17:25:49 -07:00
committed by GitHub
parent bafa1576f2
commit 47c82a7e75

View File

@@ -105,6 +105,13 @@ jest.mock('react-native-zip-archive', () => {
jest.mock('@react-native-documents/picker', () => ({ default: { } }));
// This is one of the icon libraries that react-native-paper attempts to use.
// Throwing an Error causes react-native-paper to select a different icon library
// that better supports our automated testing environment.
jest.doMock('@expo/vector-icons/MaterialCommunityIcons', () => {
throw new Error('Not supported in testing environments.');
});
// Used by the renderer
jest.doMock('react-native-vector-icons/Ionicons', () => {
return {