Skip to content

Commit a9450b6

Browse files
committed
Fixed reassure tests for optimistic report name computation
1 parent d1b5bdd commit a9450b6

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)