Files
Jellify/jest/setup/carplay.ts
Violet Caulfield b958cfe37b clean up jest folder between setup, contextual, and functional files (#451)
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
2025-07-22 09:17:42 -05:00

33 lines
666 B
TypeScript

import {
ListTemplateConfig,
NowPlayingTemplateConfig,
TabBarTemplateConfig,
} from 'react-native-carplay'
jest.mock('react-native-carplay', () => {
return {
ListTemplate: class {
config: ListTemplateConfig
constructor(config: ListTemplateConfig) {
this.config = config
}
},
NowPlayingTemplate: class {
config: NowPlayingTemplateConfig
constructor(config: NowPlayingTemplateConfig) {
this.config = config
}
},
TabBarTemplate: class {
config: TabBarTemplateConfig
constructor(config: TabBarTemplateConfig) {
this.config = config
}
},
checkForConnection: jest.fn(), // if needed as a named export too
}
})