Skip to content

Commit

Permalink
Check if jest mock is the problem
Browse files Browse the repository at this point in the history
  • Loading branch information
janicduplessis committed Aug 28, 2024
1 parent d7d8987 commit f533f79
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions jest/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,20 +81,20 @@ jest.mock('@src/libs/actions/Timing', () => ({
}));

// This makes FlatList render synchronously for easier testing.
jest.mock(
'@react-native/virtualized-lists/Interaction/Batchinator',
() =>
class SyncBachinator {
#callback: () => void;

constructor(callback: () => void) {
this.#callback = callback;
}

schedule() {
this.#callback();
}

dispose() {}
},
);
// jest.mock(
// '@react-native/virtualized-lists/Interaction/Batchinator',
// () =>
// class SyncBachinator {
// #callback: () => void;

// constructor(callback: () => void) {
// this.#callback = callback;
// }

// schedule() {
// this.#callback();
// }

// dispose() {}
// },
// );

0 comments on commit f533f79

Please sign in to comment.