diff --git a/patches/react-native+0.56.0.patch b/patches/react-native+0.56.0.patch index 72721e0..4c2e3da 100644 --- a/patches/react-native+0.56.0.patch +++ b/patches/react-native+0.56.0.patch @@ -1,4 +1,28 @@ patch-package +--- a/node_modules/react-native/jest/hasteImpl.js ++++ b/node_modules/react-native/jest/hasteImpl.js +@@ -18,9 +18,9 @@ const ROOTS = [ + ]; + + const BLACKLISTED_PATTERNS /*: Array */ = [ +- /.*\/__(mocks|tests)__\/.*/, +- /^Libraries\/Animated\/src\/polyfills\/.*/, +- /^Libraries\/Renderer\/fb\/.*/, ++ /.*[\\\/]__(mocks|tests)__[\\\/].*/, ++ /^Libraries[\\\/]Animated[\\\/]src[\\\/]polyfills[\\\/].*/, ++ /^Libraries[\\\/]Renderer[\\\/]fb[\\\/].*/, + ]; + + const WHITELISTED_PREFIXES /*: Array */ = [ +@@ -32,7 +32,7 @@ const WHITELISTED_PREFIXES /*: Array */ = [ + + const NAME_REDUCERS /*: Array<[RegExp, string]> */ = [ + // extract basename +- [/^(?:.*\/)?([a-zA-Z0-9$_.-]+)$/, '$1'], ++ [/^(?:.*[\\\/])?([a-zA-Z0-9$_.-]+)$/, '$1'], + // strip .js/.js.flow suffix + [/^(.*)\.js(\.flow)?$/, '$1'], + // strip .android/.ios/.native/.web suffix --- a/node_modules/react-native/local-cli/bundle/assetPathUtils.js +++ b/node_modules/react-native/local-cli/bundle/assetPathUtils.js @@ -19,17 +19,17 @@ import type {PackagerAsset} from '../../Libraries/Image/AssetRegistry'; diff --git a/startup/__snapshots__/App.spec.js.snap b/startup/__snapshots__/App.spec.js.snap new file mode 100644 index 0000000..8fc13fa --- /dev/null +++ b/startup/__snapshots__/App.spec.js.snap @@ -0,0 +1,3 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`App Will render 1`] = `[Function]`;