File tree Expand file tree Collapse file tree
packages/jest-preset/jest/mocks Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ module.exports = {
3232 '<rootDir>/packages/react-native/src/react-private-interface.js' ,
3333 '^react-native/setup-env$' :
3434 '<rootDir>/packages/react-native/src/setup-env.js' ,
35+ '^react-native/unstable-internals-do-not-use$' :
36+ '<rootDir>/packages/react-native/src/unstable-internals-do-not-use.js' ,
3537 } ,
3638 setupFiles : [ './packages/jest-preset/jest/local-setup.js' ] ,
3739 fakeTimers : {
Original file line number Diff line number Diff line change 99 */
1010
1111import typeof * as TmockComponent from '../mockComponent' ;
12- import typeof TActivityIndicator from 'react-native/Libraries/Components/ActivityIndicator/ActivityIndicator ' ;
12+ import typeof { ActivityIndicator as TActivityIndicator } from 'react-native' ;
1313
1414const mockComponent =
1515 jest . requireActual < TmockComponent > ( '../mockComponent' ) . default ;
Original file line number Diff line number Diff line change 99 */
1010
1111import typeof * as TmockComponent from '../mockComponent' ;
12- import typeof TImage from 'react-native/Libraries/Image/Image ' ;
12+ import typeof { Image as TImage } from 'react-native' ;
1313
1414const mockComponent =
1515 jest . requireActual < TmockComponent > ( '../mockComponent' ) . default ;
Original file line number Diff line number Diff line change 99 */
1010
1111import typeof * as TmockComponent from '../mockComponent' ;
12- import type { ModalProps } from 'react-native/Libraries/Modal/Modal ' ;
12+ import type { ModalProps } from 'react-native' ;
1313
1414const mockComponent =
1515 jest . requireActual < TmockComponent > ( '../mockComponent' ) . default ;
Original file line number Diff line number Diff line change 88 * @format
99 */
1010
11- import type { RefreshControlProps } from 'react-native/Libraries/Components/RefreshControl/RefreshControl ' ;
11+ import type { RefreshControlProps } from 'react-native' ;
1212import type { HostComponent } from 'react-native/src/private/types/HostComponent' ;
1313
1414import * as React from 'react' ;
Original file line number Diff line number Diff line change 1010
1111import typeof * as TmockComponent from '../mockComponent' ;
1212import typeof * as TMockNativeMethods from '../MockNativeMethods' ;
13- import typeof TScrollView from 'react-native/Libraries/Components/ScrollView/ScrollView ' ;
13+ import typeof { ScrollView as TScrollView } from 'react-native' ;
1414import type { ScrollViewNativeProps } from 'react-native/Libraries/Components/ScrollView/ScrollViewNativeComponentType' ;
1515
1616import * as React from 'react' ;
Original file line number Diff line number Diff line change 1010
1111import typeof * as TmockComponent from '../mockComponent' ;
1212import typeof * as TMockNativeMethods from '../MockNativeMethods' ;
13- import typeof TText from 'react-native/Libraries/Text/Text ' ;
13+ import typeof { Text as TText } from 'react-native' ;
1414
1515const mockComponent =
1616 jest . requireActual < TmockComponent > ( '../mockComponent' ) . default ;
Original file line number Diff line number Diff line change 1010
1111import typeof * as TmockComponent from '../mockComponent' ;
1212import typeof * as TMockNativeMethods from '../MockNativeMethods' ;
13- import typeof TTextInput from 'react-native/Libraries/Components/TextInput/TextInput ' ;
13+ import typeof { TextInput as TTextInput } from 'react-native' ;
1414
1515const mockComponent =
1616 jest . requireActual < TmockComponent > ( '../mockComponent' ) . default ;
Original file line number Diff line number Diff line change 1010
1111import typeof * as TmockComponent from '../mockComponent' ;
1212import typeof * as TMockNativeMethods from '../MockNativeMethods' ;
13- import typeof TView from 'react-native/Libraries/Components/View/View ' ;
13+ import typeof { View as TView } from 'react-native' ;
1414
1515const mockComponent =
1616 jest . requireActual < TmockComponent > ( '../mockComponent' ) . default ;
Original file line number Diff line number Diff line change 88 * @format
99 */
1010
11- import type { ViewProps } from 'react-native/Libraries/Components/View/ViewPropTypes ' ;
11+ import type { ViewProps } from 'react-native' ;
1212
1313import * as React from 'react' ;
1414import { createElement } from 'react' ;
You can’t perform that action at this time.
0 commit comments