Skip to content

Commit

Permalink
fix perf tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kosmydel committed Feb 12, 2024
1 parent 5e5bce0 commit 4f30355
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/perf-test/SignInPage.perf-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ import * as TestHelper from '../utils/TestHelper';
import waitForBatchedUpdates from '../utils/waitForBatchedUpdates';
import wrapOnyxWithWaitForBatchedUpdates from '../utils/wrapOnyxWithWaitForBatchedUpdates';

jest.mock('../../src/libs/Navigation/Navigation');

const mockedNavigate = jest.fn();
jest.mock('@react-navigation/native', () => {
const actualNav = jest.requireActual('@react-navigation/native');
Expand All @@ -37,6 +35,8 @@ jest.mock('@react-navigation/native', () => {
createNavigationContainerRef: () => ({
addListener: () => jest.fn(),
removeListener: () => jest.fn(),
isReady: () => jest.fn(),
getCurrentRoute: () => jest.fn(),
}),
} as typeof NativeNavigation;
});
Expand Down

0 comments on commit 4f30355

Please sign in to comment.