We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5686448 commit 146de2aCopy full SHA for 146de2a
1 file changed
src/components/__tests__/TextField.test.tsx
@@ -8,6 +8,19 @@ import type { TextFieldAccessoryProps } from '../TextField/TextField';
8
9
const defaultI18nIsRTL = I18nManager.isRTL;
10
11
+const getConstantsOriginal = I18nManager.getConstants.bind(I18nManager);
12
+
13
+beforeAll(() => {
14
+ jest.spyOn(I18nManager, 'getConstants').mockImplementation(() => ({
15
+ ...getConstantsOriginal(),
16
+ isRTL: I18nManager.isRTL,
17
+ }));
18
+});
19
20
+afterAll(() => {
21
+ jest.restoreAllMocks();
22
23
24
afterEach(() => {
25
I18nManager.isRTL = defaultI18nIsRTL;
26
});
0 commit comments