Skip to content

Commit 4ba9019

Browse files
Merge pull request Expensify#68726 from callstack-internal/fix/optimistic-names-reassure-tests
[No QA] Fixed reassure tests for optimistic report name computation
2 parents 810a3d8 + a9450b6 commit 4ba9019

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/perf-test/OptimisticReportNames.perf-test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ import {createRandomReport} from '../utils/collections/reports';
1212
import waitForBatchedUpdates from '../utils/waitForBatchedUpdates';
1313

1414
// Mock dependencies
15-
jest.mock('@libs/ReportUtils');
15+
jest.mock('@libs/ReportUtils', () => ({
16+
...jest.requireActual<typeof ReportUtils>('@libs/ReportUtils'),
17+
isExpenseReport: jest.fn(),
18+
getTitleReportField: jest.fn(),
19+
}));
1620
jest.mock('@libs/Performance', () => ({
1721
markStart: jest.fn(),
1822
markEnd: jest.fn(),

0 commit comments

Comments
 (0)