Skip to content

Commit

Permalink
fix migrations unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
tommasini committed Jul 23, 2024
1 parent 78f2c71 commit 5d51964
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/store/migrations/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ import {
const defaultNodeEnv = process.env.NODE_ENV;
jest.unmock('redux-persist');
jest.mock('../../store', () => jest.fn());
jest.mock('react-native-default-preference', () => ({
set: jest.fn(),
clear: jest.fn(),
getAll: jest.fn().mockReturnValue({}),
}));

// Only test migrations 25 and up
const migrationNumberToTestFrom = 25;
Expand Down

0 comments on commit 5d51964

Please sign in to comment.