Skip to content

Commit

Permalink
test: mock async storage
Browse files Browse the repository at this point in the history
  • Loading branch information
rameziophobia committed Feb 6, 2022
1 parent 537412e commit e8fb327
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion __test__/setup.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
jest.mock('react-native/Libraries/Animated/src/NativeAnimatedHelper');
import mockAsyncStorage from '@react-native-async-storage/async-storage/jest/async-storage-mock';

jest.mock('@react-native-async-storage/async-storage', () => mockAsyncStorage);
jest.mock('@react-navigation/native', () => {
const actualNav = jest.requireActual('@react-navigation/native');
return {
Expand Down

0 comments on commit e8fb327

Please sign in to comment.