Skip to content

Commit

Permalink
fix: failing unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
allroundexperts committed Jun 8, 2023
1 parent 89b6355 commit 1210ec9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jest/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,9 @@ jest.spyOn(console, 'debug').mockImplementation((...params) => {
// eslint-disable-next-line no-console
console.log('DEBUG', ...params);
});

// This mock is required for mocking file systems when running tests
jest.mock('react-native-fs', () => ({
unlink: jest.fn(() => new Promise((res) => res())),
CachesDirectoryPath: jest.fn(),
}));

0 comments on commit 1210ec9

Please sign in to comment.