Skip to content

Commit

Permalink
pipeline fix
Browse files Browse the repository at this point in the history
  • Loading branch information
besdar committed Nov 9, 2024
1 parent 9dbb217 commit f1dc160
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/shared/config/mocks/navigator.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import 'react-native-gesture-handler/jestSetup';

jest.mock('react-native/Libraries/Animated/NativeAnimatedHelper');
// jest.mock('react-native/Libraries/Animated/NativeAnimatedHelper');
5 changes: 3 additions & 2 deletions src/shared/ui/ControlledTextInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
} from 'react-hook-form';
import {HelperText, TextInput} from 'react-native-paper';
import React from 'react';
import {StyleSheet, View} from 'react-native';
import {StyleSheet, TextStyle, View} from 'react-native';

const styles = StyleSheet.create({
view: {
Expand Down Expand Up @@ -59,12 +59,13 @@ export const ControlledTextInput = <
testID={`input_${name}`}
/>
<HelperText
// @ts-ignore - TODO: Bug after package updates
style={[
styles.helperText,
{
display:
fieldState.error?.message || helperText ? undefined : 'none',
},
} as TextStyle,
]}
type={helperText ? 'info' : 'error'}
visible={Boolean(fieldState.error?.message || helperText)}>
Expand Down
1 change: 1 addition & 0 deletions src/shared/ui/__tests__/Details.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ describe('Details Component', () => {
expect(
screen.queryByText('Additional Settings Content'),
).not.toBeOnTheScreen();
expect(screen.getByText('show_additional_settings')).toBeOnTheScreen();

const button = screen.getByRole('button');

Expand Down

0 comments on commit f1dc160

Please sign in to comment.