diff --git a/.flowconfig b/.flowconfig index 8912680eb305c1..e906bb11e66aa4 100644 --- a/.flowconfig +++ b/.flowconfig @@ -63,6 +63,10 @@ module.system.haste.paths.whitelist=/IntegrationTests/.* module.system.haste.paths.blacklist=/Libraries/react-native/react-native-implementation.js module.system.haste.paths.blacklist=/Libraries/Animated/src/polyfills/.* +module.file_ext=.js +module.file_ext=.json +module.file_ext=.ios.js + munge_underscores=true module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub' diff --git a/.flowconfig.android b/.flowconfig.android index cd5a38ec5de347..037cdfeac7ee48 100644 --- a/.flowconfig.android +++ b/.flowconfig.android @@ -44,6 +44,10 @@ emoji=true esproposal.optional_chaining=enable esproposal.nullish_coalescing=enable +module.file_ext=.js +module.file_ext=.json +module.file_ext=.android.js + module.system=haste module.system.haste.use_name_reducers=true # keep the following in sync with server/haste/hasteImpl.js diff --git a/Libraries/YellowBox/Data/YellowBoxCategory.js b/Libraries/YellowBox/Data/YellowBoxCategory.js index bf0dd67ccbd131..39daa110a20c0a 100644 --- a/Libraries/YellowBox/Data/YellowBoxCategory.js +++ b/Libraries/YellowBox/Data/YellowBoxCategory.js @@ -10,13 +10,13 @@ 'use strict'; -const React = require('React'); -const Text = require('Text'); -const UTFSequence = require('UTFSequence'); +const React = require('react'); +const Text = require('../../Text/Text'); +const UTFSequence = require('../../UTFSequence'); -const stringifySafe = require('stringifySafe'); +const stringifySafe = require('../../Utilities/stringifySafe'); -import type {TextStyleProp} from 'StyleSheet'; +import type {TextStyleProp} from '../../StyleSheet/StyleSheet'; export type Category = string; export type Message = $ReadOnly<{| diff --git a/Libraries/YellowBox/Data/YellowBoxRegistry.js b/Libraries/YellowBox/Data/YellowBoxRegistry.js index b6a445f893aabf..413ec3d00fdee6 100644 --- a/Libraries/YellowBox/Data/YellowBoxRegistry.js +++ b/Libraries/YellowBox/Data/YellowBoxRegistry.js @@ -10,9 +10,9 @@ 'use strict'; -const YellowBoxWarning = require('YellowBoxWarning'); +const YellowBoxWarning = require('./YellowBoxWarning'); -import type {Category} from 'YellowBoxCategory'; +import type {Category} from './YellowBoxCategory'; export type Registry = Map>; diff --git a/Libraries/YellowBox/Data/YellowBoxSymbolication.js b/Libraries/YellowBox/Data/YellowBoxSymbolication.js index 816a1c40962932..f8186daeeb9868 100644 --- a/Libraries/YellowBox/Data/YellowBoxSymbolication.js +++ b/Libraries/YellowBox/Data/YellowBoxSymbolication.js @@ -10,9 +10,9 @@ 'use strict'; -const symbolicateStackTrace = require('symbolicateStackTrace'); +const symbolicateStackTrace = require('../../Core/Devtools/symbolicateStackTrace'); -import type {StackFrame} from 'parseErrorStack'; +import type {StackFrame} from '../../Core/Devtools/parseErrorStack'; type CacheKey = string; diff --git a/Libraries/YellowBox/Data/YellowBoxWarning.js b/Libraries/YellowBox/Data/YellowBoxWarning.js index f9b6ede089f1b3..0b43b852368d50 100644 --- a/Libraries/YellowBox/Data/YellowBoxWarning.js +++ b/Libraries/YellowBox/Data/YellowBoxWarning.js @@ -10,13 +10,13 @@ 'use strict'; -const YellowBoxCategory = require('YellowBoxCategory'); -const YellowBoxSymbolication = require('YellowBoxSymbolication'); +const YellowBoxCategory = require('./YellowBoxCategory'); +const YellowBoxSymbolication = require('./YellowBoxSymbolication'); -const parseErrorStack = require('parseErrorStack'); +const parseErrorStack = require('../../Core/Devtools/parseErrorStack'); -import type {Category, Message} from 'YellowBoxCategory'; -import type {Stack} from 'YellowBoxSymbolication'; +import type {Category, Message} from './YellowBoxCategory'; +import type {Stack} from './YellowBoxSymbolication'; export type SymbolicationRequest = $ReadOnly<{| abort: () => void, diff --git a/Libraries/YellowBox/Data/__tests__/YellowBoxCategory-test.js b/Libraries/YellowBox/Data/__tests__/YellowBoxCategory-test.js index 8e32c42d019b3e..502416373dcb24 100644 --- a/Libraries/YellowBox/Data/__tests__/YellowBoxCategory-test.js +++ b/Libraries/YellowBox/Data/__tests__/YellowBoxCategory-test.js @@ -11,7 +11,7 @@ 'use strict'; -const YellowBoxCategory = require('YellowBoxCategory'); +const YellowBoxCategory = require('../YellowBoxCategory'); describe('YellowBoxCategory', () => { it('parses strings', () => { diff --git a/Libraries/YellowBox/Data/__tests__/YellowBoxRegistry-test.js b/Libraries/YellowBox/Data/__tests__/YellowBoxRegistry-test.js index bca905b0699498..35a6dc9b8cfc23 100644 --- a/Libraries/YellowBox/Data/__tests__/YellowBoxRegistry-test.js +++ b/Libraries/YellowBox/Data/__tests__/YellowBoxRegistry-test.js @@ -11,8 +11,8 @@ 'use strict'; -const YellowBoxCategory = require('YellowBoxCategory'); -const YellowBoxRegistry = require('YellowBoxRegistry'); +const YellowBoxCategory = require('../YellowBoxCategory'); +const YellowBoxRegistry = require('../YellowBoxRegistry'); const registry = () => { const observer = jest.fn(); diff --git a/Libraries/YellowBox/Data/__tests__/YellowBoxSymbolication-test.js b/Libraries/YellowBox/Data/__tests__/YellowBoxSymbolication-test.js index c6af1d2cb851f8..b438ab1142e92d 100644 --- a/Libraries/YellowBox/Data/__tests__/YellowBoxSymbolication-test.js +++ b/Libraries/YellowBox/Data/__tests__/YellowBoxSymbolication-test.js @@ -11,16 +11,16 @@ 'use strict'; -import type {StackFrame} from 'parseErrorStack'; +import type {StackFrame} from '../../../Core/Devtools/parseErrorStack'; -jest.mock('symbolicateStackTrace'); +jest.mock('../../../Core/Devtools/symbolicateStackTrace'); -const YellowBoxSymbolication = require('YellowBoxSymbolication'); +const YellowBoxSymbolication = require('../YellowBoxSymbolication'); const symbolicateStackTrace: JestMockFn< $ReadOnlyArray>, Promise>, -> = (require('symbolicateStackTrace'): any); +> = (require('../../../Core/Devtools/symbolicateStackTrace'): any); const createStack = methodNames => methodNames.map(methodName => ({ diff --git a/Libraries/YellowBox/Data/__tests__/YellowBoxWarning-test.js b/Libraries/YellowBox/Data/__tests__/YellowBoxWarning-test.js index d3b3143ac66e03..65369bf8e5e60f 100644 --- a/Libraries/YellowBox/Data/__tests__/YellowBoxWarning-test.js +++ b/Libraries/YellowBox/Data/__tests__/YellowBoxWarning-test.js @@ -11,17 +11,17 @@ 'use strict'; -import type {StackFrame} from 'parseErrorStack'; +import type {StackFrame} from '../../../Core/Devtools/parseErrorStack'; -jest.mock('YellowBoxSymbolication'); +jest.mock('../YellowBoxSymbolication'); const YellowBoxSymbolication: {| symbolicate: JestMockFn< $ReadOnlyArray>, Promise>, >, -|} = (require('YellowBoxSymbolication'): any); -const YellowBoxWarning = require('YellowBoxWarning'); +|} = (require('../YellowBoxSymbolication'): any); +const YellowBoxWarning = require('../YellowBoxWarning'); const createStack = methodNames => methodNames.map(methodName => ({ diff --git a/Libraries/YellowBox/UI/YellowBoxButton.js b/Libraries/YellowBox/UI/YellowBoxButton.js index e8a98057d9127e..67885298f6c56c 100644 --- a/Libraries/YellowBox/UI/YellowBoxButton.js +++ b/Libraries/YellowBox/UI/YellowBoxButton.js @@ -10,13 +10,13 @@ 'use strict'; -const React = require('React'); -const StyleSheet = require('StyleSheet'); -const Text = require('Text'); -const YellowBoxPressable = require('YellowBoxPressable'); -const YellowBoxStyle = require('YellowBoxStyle'); +const React = require('react'); +const StyleSheet = require('../../StyleSheet/StyleSheet'); +const Text = require('../../Text/Text'); +const YellowBoxPressable = require('./YellowBoxPressable'); +const YellowBoxStyle = require('./YellowBoxStyle'); -import type {EdgeInsetsProp} from 'EdgeInsetsPropType'; +import type {EdgeInsetsProp} from '../../StyleSheet/EdgeInsetsPropType'; type Props = $ReadOnly<{| hitSlop?: ?EdgeInsetsProp, diff --git a/Libraries/YellowBox/UI/YellowBoxImageSource.js b/Libraries/YellowBox/UI/YellowBoxImageSource.js index 05a9f46b3a83db..8c186beb89e502 100644 --- a/Libraries/YellowBox/UI/YellowBoxImageSource.js +++ b/Libraries/YellowBox/UI/YellowBoxImageSource.js @@ -10,7 +10,7 @@ 'use strict'; -const PixelRatio = require('PixelRatio'); +const PixelRatio = require('../../Utilities/PixelRatio'); const scale = PixelRatio.get(); diff --git a/Libraries/YellowBox/UI/YellowBoxInspector.js b/Libraries/YellowBox/UI/YellowBoxInspector.js index a99bffc97269b7..1d4cf6f17f331a 100644 --- a/Libraries/YellowBox/UI/YellowBoxInspector.js +++ b/Libraries/YellowBox/UI/YellowBoxInspector.js @@ -10,23 +10,23 @@ 'use strict'; -const Platform = require('Platform'); -const React = require('React'); -const ScrollView = require('ScrollView'); -const StyleSheet = require('StyleSheet'); -const Text = require('Text'); -const View = require('View'); -const YellowBoxCategory = require('YellowBoxCategory'); -const YellowBoxInspectorFooter = require('YellowBoxInspectorFooter'); -const YellowBoxInspectorHeader = require('YellowBoxInspectorHeader'); -const YellowBoxInspectorSourceMapStatus = require('YellowBoxInspectorSourceMapStatus'); -const YellowBoxInspectorStackFrame = require('YellowBoxInspectorStackFrame'); -const YellowBoxStyle = require('YellowBoxStyle'); - -const openFileInEditor = require('openFileInEditor'); - -import type YellowBoxWarning from 'YellowBoxWarning'; -import type {SymbolicationRequest} from 'YellowBoxWarning'; +const Platform = require('../../Utilities/Platform'); +const React = require('react'); +const ScrollView = require('../../Components/ScrollView/ScrollView'); +const StyleSheet = require('../../StyleSheet/StyleSheet'); +const Text = require('../../Text/Text'); +const View = require('../../Components/View/View'); +const YellowBoxCategory = require('../Data/YellowBoxCategory'); +const YellowBoxInspectorFooter = require('./YellowBoxInspectorFooter'); +const YellowBoxInspectorHeader = require('./YellowBoxInspectorHeader'); +const YellowBoxInspectorSourceMapStatus = require('./YellowBoxInspectorSourceMapStatus'); +const YellowBoxInspectorStackFrame = require('./YellowBoxInspectorStackFrame'); +const YellowBoxStyle = require('./YellowBoxStyle'); + +const openFileInEditor = require('../../Core/Devtools/openFileInEditor'); + +import type YellowBoxWarning from '../Data/YellowBoxWarning'; +import type {SymbolicationRequest} from '../Data/YellowBoxWarning'; type Props = $ReadOnly<{| onDismiss: () => void, diff --git a/Libraries/YellowBox/UI/YellowBoxInspectorFooter.js b/Libraries/YellowBox/UI/YellowBoxInspectorFooter.js index 56efa6fb9a94ac..5dda52a848f99a 100644 --- a/Libraries/YellowBox/UI/YellowBoxInspectorFooter.js +++ b/Libraries/YellowBox/UI/YellowBoxInspectorFooter.js @@ -10,13 +10,13 @@ 'use strict'; -const React = require('React'); -const SafeAreaView = require('SafeAreaView'); -const StyleSheet = require('StyleSheet'); -const Text = require('Text'); -const View = require('View'); -const YellowBoxPressable = require('YellowBoxPressable'); -const YellowBoxStyle = require('YellowBoxStyle'); +const React = require('react'); +const SafeAreaView = require('../../Components/SafeAreaView/SafeAreaView'); +const StyleSheet = require('../../StyleSheet/StyleSheet'); +const Text = require('../../Text/Text'); +const View = require('../../Components/View/View'); +const YellowBoxPressable = require('./YellowBoxPressable'); +const YellowBoxStyle = require('./YellowBoxStyle'); type Props = $ReadOnly<{| onDismiss: () => void, diff --git a/Libraries/YellowBox/UI/YellowBoxInspectorHeader.js b/Libraries/YellowBox/UI/YellowBoxInspectorHeader.js index dfcdb7d9f12afd..dffcbbf2c87c2c 100644 --- a/Libraries/YellowBox/UI/YellowBoxInspectorHeader.js +++ b/Libraries/YellowBox/UI/YellowBoxInspectorHeader.js @@ -10,18 +10,18 @@ 'use strict'; -const Image = require('Image'); -const Platform = require('Platform'); -const React = require('React'); -const SafeAreaView = require('SafeAreaView'); -const StyleSheet = require('StyleSheet'); -const Text = require('Text'); -const View = require('View'); -const YellowBoxImageSource = require('YellowBoxImageSource'); -const YellowBoxPressable = require('YellowBoxPressable'); -const YellowBoxStyle = require('YellowBoxStyle'); +const Image = require('../../Image/Image'); +const Platform = require('../../Utilities/Platform'); +const React = require('react'); +const SafeAreaView = require('../../Components/SafeAreaView/SafeAreaView'); +const StyleSheet = require('../../StyleSheet/StyleSheet'); +const Text = require('../../Text/Text'); +const View = require('../../Components/View/View'); +const YellowBoxImageSource = require('./YellowBoxImageSource'); +const YellowBoxPressable = require('./YellowBoxPressable'); +const YellowBoxStyle = require('./YellowBoxStyle'); -import type YellowBoxWarning from 'YellowBoxWarning'; +import type YellowBoxWarning from '../Data/YellowBoxWarning'; type Props = $ReadOnly<{| onSelectIndex: (selectedIndex: number) => void, diff --git a/Libraries/YellowBox/UI/YellowBoxInspectorSourceMapStatus.js b/Libraries/YellowBox/UI/YellowBoxInspectorSourceMapStatus.js index 6fea1672a47957..48487792293959 100644 --- a/Libraries/YellowBox/UI/YellowBoxInspectorSourceMapStatus.js +++ b/Libraries/YellowBox/UI/YellowBoxInspectorSourceMapStatus.js @@ -10,18 +10,18 @@ 'use strict'; -const Animated = require('Animated'); -const Easing = require('Easing'); -const React = require('React'); -const StyleSheet = require('StyleSheet'); -const Text = require('Text'); -const YellowBoxImageSource = require('YellowBoxImageSource'); -const YellowBoxPressable = require('YellowBoxPressable'); -const YellowBoxStyle = require('YellowBoxStyle'); +const Animated = require('../../Animated/src/Animated'); +const Easing = require('../../Animated/src/Easing'); +const React = require('react'); +const StyleSheet = require('../../StyleSheet/StyleSheet'); +const Text = require('../../Text/Text'); +const YellowBoxImageSource = require('./YellowBoxImageSource'); +const YellowBoxPressable = require('./YellowBoxPressable'); +const YellowBoxStyle = require('./YellowBoxStyle'); -import type {CompositeAnimation} from 'AnimatedImplementation'; -import type AnimatedInterpolation from 'AnimatedInterpolation'; -import type {PressEvent} from 'CoreEventTypes'; +import type {CompositeAnimation} from '../../Animated/src/AnimatedImplementation'; +import type AnimatedInterpolation from '../../Animated/src/nodes/AnimatedInterpolation'; +import type {PressEvent} from '../../Types/CoreEventTypes'; type Props = $ReadOnly<{| onPress?: ?(event: PressEvent) => void, diff --git a/Libraries/YellowBox/UI/YellowBoxInspectorStackFrame.js b/Libraries/YellowBox/UI/YellowBoxInspectorStackFrame.js index 7840dc9dcf57a1..efac349d35ee3c 100644 --- a/Libraries/YellowBox/UI/YellowBoxInspectorStackFrame.js +++ b/Libraries/YellowBox/UI/YellowBoxInspectorStackFrame.js @@ -10,14 +10,14 @@ 'use strict'; -const React = require('React'); -const StyleSheet = require('StyleSheet'); -const Text = require('Text'); -const YellowBoxPressable = require('YellowBoxPressable'); -const YellowBoxStyle = require('YellowBoxStyle'); +const React = require('react'); +const StyleSheet = require('../../StyleSheet/StyleSheet'); +const Text = require('../../Text/Text'); +const YellowBoxPressable = require('./YellowBoxPressable'); +const YellowBoxStyle = require('./YellowBoxStyle'); -import type {PressEvent} from 'CoreEventTypes'; -import type {StackFrame} from 'parseErrorStack'; +import type {PressEvent} from '../../Types/CoreEventTypes'; +import type {StackFrame} from '../../Core/Devtools/parseErrorStack'; type Props = $ReadOnly<{| frame: StackFrame, diff --git a/Libraries/YellowBox/UI/YellowBoxList.js b/Libraries/YellowBox/UI/YellowBoxList.js index 41c85cdeffa17e..2620c35852fab7 100644 --- a/Libraries/YellowBox/UI/YellowBoxList.js +++ b/Libraries/YellowBox/UI/YellowBoxList.js @@ -10,19 +10,19 @@ 'use strict'; -const Dimensions = require('Dimensions'); -const React = require('React'); -const FlatList = require('FlatList'); -const SafeAreaView = require('SafeAreaView'); -const StyleSheet = require('StyleSheet'); -const View = require('View'); -const YellowBoxButton = require('YellowBoxButton'); -const YellowBoxInspector = require('YellowBoxInspector'); -const YellowBoxListRow = require('YellowBoxListRow'); -const YellowBoxStyle = require('YellowBoxStyle'); - -import type {Category} from 'YellowBoxCategory'; -import type {Registry} from 'YellowBoxRegistry'; +const Dimensions = require('../../Utilities/Dimensions'); +const React = require('react'); +const FlatList = require('../../Lists/FlatList'); +const SafeAreaView = require('../../Components/SafeAreaView/SafeAreaView'); +const StyleSheet = require('../../StyleSheet/StyleSheet'); +const View = require('../../Components/View/View'); +const YellowBoxButton = require('./YellowBoxButton'); +const YellowBoxInspector = require('./YellowBoxInspector'); +const YellowBoxListRow = require('./YellowBoxListRow'); +const YellowBoxStyle = require('./YellowBoxStyle'); + +import type {Category} from '../Data/YellowBoxCategory'; +import type {Registry} from '../Data/YellowBoxRegistry'; type Props = $ReadOnly<{| onDismiss: (category: Category) => void, diff --git a/Libraries/YellowBox/UI/YellowBoxListRow.js b/Libraries/YellowBox/UI/YellowBoxListRow.js index 3af72817f5f1d0..d10f11b9034709 100644 --- a/Libraries/YellowBox/UI/YellowBoxListRow.js +++ b/Libraries/YellowBox/UI/YellowBoxListRow.js @@ -10,16 +10,16 @@ 'use strict'; -const React = require('React'); -const StyleSheet = require('StyleSheet'); -const Text = require('Text'); -const YellowBoxPressable = require('YellowBoxPressable'); -const View = require('View'); -const YellowBoxCategory = require('YellowBoxCategory'); -const YellowBoxStyle = require('YellowBoxStyle'); -const YellowBoxWarning = require('YellowBoxWarning'); +const React = require('react'); +const StyleSheet = require('../../StyleSheet/StyleSheet'); +const Text = require('../../Text/Text'); +const YellowBoxPressable = require('./YellowBoxPressable'); +const View = require('../../Components/View/View'); +const YellowBoxCategory = require('../Data/YellowBoxCategory'); +const YellowBoxStyle = require('./YellowBoxStyle'); +const YellowBoxWarning = require('../Data/YellowBoxWarning'); -import type {Category} from 'YellowBoxCategory'; +import type {Category} from '../Data/YellowBoxCategory'; type Props = $ReadOnly<{| category: Category, diff --git a/Libraries/YellowBox/UI/YellowBoxPressable.js b/Libraries/YellowBox/UI/YellowBoxPressable.js index 540c9eb4299677..0090ca69ab37f2 100644 --- a/Libraries/YellowBox/UI/YellowBoxPressable.js +++ b/Libraries/YellowBox/UI/YellowBoxPressable.js @@ -10,15 +10,15 @@ 'use strict'; -const React = require('React'); -const StyleSheet = require('StyleSheet'); -const TouchableWithoutFeedback = require('TouchableWithoutFeedback'); -const View = require('View'); -const YellowBoxStyle = require('YellowBoxStyle'); +const React = require('react'); +const StyleSheet = require('../../StyleSheet/StyleSheet'); +const TouchableWithoutFeedback = require('../../Components/Touchable/TouchableWithoutFeedback'); +const View = require('../../Components/View/View'); +const YellowBoxStyle = require('./YellowBoxStyle'); -import type {PressEvent} from 'CoreEventTypes'; -import type {EdgeInsetsProp} from 'EdgeInsetsPropType'; -import type {ViewStyleProp} from 'StyleSheet'; +import type {PressEvent} from '../../Types/CoreEventTypes'; +import type {EdgeInsetsProp} from '../../StyleSheet/EdgeInsetsPropType'; +import type {ViewStyleProp} from '../../StyleSheet/StyleSheet'; type Props = $ReadOnly<{| backgroundColor: $ReadOnly<{| diff --git a/Libraries/YellowBox/YellowBox.js b/Libraries/YellowBox/YellowBox.js index 4f7d4128412b73..3e52753ee0e489 100644 --- a/Libraries/YellowBox/YellowBox.js +++ b/Libraries/YellowBox/YellowBox.js @@ -10,10 +10,10 @@ 'use strict'; -const React = require('React'); +const React = require('react'); -import type {Category} from 'YellowBoxCategory'; -import type {Registry, Subscription, IgnorePattern} from 'YellowBoxRegistry'; +import type {Category} from './Data/YellowBoxCategory'; +import type {Registry, Subscription, IgnorePattern} from './Data/YellowBoxRegistry'; type Props = $ReadOnly<{||}>; type State = {| @@ -41,10 +41,10 @@ let YellowBox; * the ignored warning messages. */ if (__DEV__) { - const Platform = require('Platform'); - const RCTLog = require('RCTLog'); - const YellowBoxList = require('YellowBoxList'); - const YellowBoxRegistry = require('YellowBoxRegistry'); + const Platform = require('../Utilities/Platform'); + const RCTLog = require('../Utilities/RCTLog'); + const YellowBoxList = require('./UI/YellowBoxList'); + const YellowBoxRegistry = require('./Data/YellowBoxRegistry'); const {error, warn} = console; diff --git a/Libraries/YellowBox/__tests__/YellowBox-test.js b/Libraries/YellowBox/__tests__/YellowBox-test.js index 7fab54b447bbf2..8969f27ccb41d7 100644 --- a/Libraries/YellowBox/__tests__/YellowBox-test.js +++ b/Libraries/YellowBox/__tests__/YellowBox-test.js @@ -11,8 +11,8 @@ 'use strict'; -const YellowBox = require('YellowBox'); -const YellowBoxRegistry = require('YellowBoxRegistry'); +const YellowBox = require('../YellowBox'); +const YellowBoxRegistry = require('../Data/YellowBoxRegistry'); describe('YellowBox', () => { const {error, warn} = console; @@ -54,7 +54,7 @@ describe('YellowBox', () => { }); it('registers warnings', () => { - jest.mock('YellowBoxRegistry'); + jest.mock('../Data/YellowBoxRegistry'); YellowBox.install(); @@ -64,7 +64,7 @@ describe('YellowBox', () => { }); it('registers errors beginning with "Warning: "', () => { - jest.mock('YellowBoxRegistry'); + jest.mock('../Data/YellowBoxRegistry'); YellowBox.install();