Skip to content

Commit

Permalink
chore: added jest mock
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillzyusko committed Feb 7, 2024
1 parent a20c54b commit d29768b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions jest/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,11 @@ jest.mock('react-native-fs', () => ({
unlink: jest.fn(() => new Promise((res) => res())),
CachesDirectoryPath: jest.fn(),
}));

jest.mock('react-native-sound', () => {
class SoundMock {
play = jest.fn();
}

return SoundMock;
});

0 comments on commit d29768b

Please sign in to comment.