Files
App/jest/setup.ts
Ritesh Shukla 20937ff359 Implement OTA Updates (#364)
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
2025-05-15 11:04:50 -05:00

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(),
},
}
})