mirror of
https://github.com/Jellify-Music/App.git
synced 2026-01-27 13:38:40 -06:00
Implements OTA updates, fetched via GitHub from our `App-Bundles` repository All Typescript changes can be delivered this way All native changes will need to go through the traditional `publish-beta` workflow, which is now run manually
35 lines
548 B
TypeScript
35 lines
548 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 {
|
|
default: {
|
|
trigger: jest.fn(),
|
|
},
|
|
}
|
|
})
|