Skip to content

Commit

Permalink
Fix lazy import error from jest and Appearance.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Kudo committed Nov 15, 2024
1 parent 9a60038 commit 29edea8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/react-native/jest/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -448,4 +448,8 @@ jest
return jest.requireActual(
'../Libraries/ReactNative/RendererImplementation',
);
});
})
.mock('../Libraries/Utilities/useColorScheme', () => ({
__esModule: true,
default: jest.fn().mockReturnValue('light'),
}));

0 comments on commit 29edea8

Please sign in to comment.