mirror of
https://github.com/Jellify-Music/App.git
synced 2026-04-26 13:00:00 -05:00
b958cfe37b
Clean up Jest and Maestro Folders Reduction of the number of calls being made by components Fix issue where a different track would display than the one that is currently playing Update OTA dependency to fix an issue on iOS
45 lines
785 B
TypeScript
45 lines
785 B
TypeScript
jest.mock('../../src/api/info', () => {
|
|
return {
|
|
JellyfinInfo: {
|
|
clientInfo: {
|
|
name: 'Jellify',
|
|
version: '0.0.1',
|
|
},
|
|
deviceInfo: {
|
|
name: 'iPhone 12',
|
|
id: '1234567890',
|
|
},
|
|
createApi: jest.fn(),
|
|
},
|
|
}
|
|
})
|
|
|
|
jest.mock('react-native-ota-hot-update', () => {
|
|
return {
|
|
git: {
|
|
checkForGitUpdate: jest.fn(),
|
|
},
|
|
resetApp: jest.fn(),
|
|
}
|
|
})
|
|
|
|
jest.mock('react-native/Libraries/EventEmitter/NativeEventEmitter')
|
|
|
|
jest.mock('react-native-haptic-feedback', () => {
|
|
return {
|
|
trigger: jest.fn(),
|
|
}
|
|
})
|
|
|
|
jest.mock('react-native/Libraries/Components/RefreshControl/RefreshControl', () => ({
|
|
__esModule: true,
|
|
default: require('./refresh-control'),
|
|
}))
|
|
|
|
jest.mock('react-native-toast-message', () => {
|
|
return {
|
|
show: jest.fn(),
|
|
hide: jest.fn(),
|
|
}
|
|
})
|