mirror of
https://github.com/Jellify-Music/App.git
synced 2026-01-16 07:50:04 -06:00
* Fix Height&Width not changing * Remove RN 79.2 patch update locks * comment out sentry module for now * Fix Jest Unit Tests for RN 80 * Run linting * update fastfile for android --------- Co-authored-by: Violet Caulfield <violet@cosmonautical.cloud>
40 lines
704 B
TypeScript
40 lines
704 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(),
|
|
},
|
|
}
|
|
})
|
|
|
|
jest.mock('react-native/Libraries/Components/RefreshControl/RefreshControl', () => ({
|
|
__esModule: true,
|
|
default: require('./setup-refresh-control'),
|
|
}))
|