mirror of
https://github.com/Jellify-Music/App.git
synced 2026-03-17 18:51:24 -05:00
add nitro player mocks
This commit is contained in:
@@ -21,6 +21,7 @@ module.exports = {
|
||||
'./jest/setup/nitro-fetch.ts',
|
||||
'./jest/setup/nitro-image.ts',
|
||||
'./jest/setup/nitro-ota.ts',
|
||||
'./jest/setup/nitro-player.ts',
|
||||
'./tamagui.config.ts',
|
||||
'./jest/setup/native-modules.ts',
|
||||
],
|
||||
|
||||
11
jest/setup/nitro-player.ts
Normal file
11
jest/setup/nitro-player.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
jest.mock('react-native-nitro-player', () => ({
|
||||
TrackPlayer: jest.fn().mockImplementation(() => ({
|
||||
play: jest.fn(),
|
||||
pause: jest.fn(),
|
||||
stop: jest.fn(),
|
||||
configure: jest.fn(),
|
||||
onChangeTrack: jest.fn(),
|
||||
skipToNext: jest.fn(),
|
||||
skipToPrevious: jest.fn(),
|
||||
})),
|
||||
}))
|
||||
Reference in New Issue
Block a user