mirror of
https://github.com/Jellify-Music/App.git
synced 2026-01-10 21:09:57 -06:00
* Gapless playback (#372) * Add gapless playback prefetch logic for next track * Enhance player context to support multiple track downloads and prevent redundant prefetching * Add download quality settings and integrate into track mapping and network contexts (#386) * Add Shuffle * Add Library Selection screen and navigation to account tab * player redesign featuring blurred background artwork * add repeat modes to player
45 lines
788 B
TypeScript
45 lines
788 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('./setup-refresh-control'),
|
|
}))
|
|
|
|
jest.mock('react-native-toast-message', () => {
|
|
return {
|
|
show: jest.fn(),
|
|
hide: jest.fn(),
|
|
}
|
|
})
|