You've already forked joplin
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user