Skip to content

Commit 9b5e29d

Browse files
committed
Always mock runOnLiveMarkdownRuntime fn
1 parent c351507 commit 9b5e29d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

jest/setup.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ jest.mock('react-native-keyboard-controller', () => require<typeof RNKeyboardCon
8484

8585
jest.mock('react-native-app-logs', () => require<typeof RNAppLogs>('react-native-app-logs/jest'));
8686

87+
jest.mock('@libs/runOnLiveMarkdownRuntime', () => {
88+
const runOnLiveMarkdownRuntime = <Args extends unknown[], ReturnValue>(worklet: (...args: Args) => ReturnValue) => worklet;
89+
return runOnLiveMarkdownRuntime;
90+
});
91+
8792
jest.mock('@src/libs/actions/Timing', () => ({
8893
start: jest.fn(),
8994
end: jest.fn(),

tests/perf-test/SearchRouter.perf-test.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,6 @@ jest.mock('@react-navigation/native', () => {
6969
};
7070
});
7171

72-
jest.mock('@libs/runOnLiveMarkdownRuntime', () => {
73-
const runOnLiveMarkdownRuntime = <Args extends unknown[], ReturnValue>(worklet: (...args: Args) => ReturnValue) => worklet;
74-
return runOnLiveMarkdownRuntime;
75-
});
76-
7772
const getMockedReports = (length = 100) =>
7873
createCollection<Report>(
7974
(item) => `${ONYXKEYS.COLLECTION.REPORT}${item.reportID}`,

0 commit comments

Comments
 (0)