Skip to content

Commit

Permalink
mock timing on perf tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TMisiukiewicz committed Jul 25, 2024
1 parent 00f4be9 commit 04a9996
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/perf-test/OptionsListUtils.perf-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ jest.mock('@react-navigation/native', () => {
};
});

jest.mock('@src/libs/actions/Timing', () => {
return {
start: jest.fn(),
end: jest.fn(),
};
});

const options = OptionsListUtils.createOptionList(personalDetails, reports);

/* GetOption is the private function and is never called directly, we are testing the functions which call getOption with different params */
Expand Down

0 comments on commit 04a9996

Please sign in to comment.