Skip to content

Commit

Permalink
fix via the pulling in a commit that fixes the problem
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpricedev committed Aug 9, 2018
1 parent 374ff26 commit 5b3428f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
24 changes: 24 additions & 0 deletions patches/react-native+0.56.0.patch
Original file line number Diff line number Diff line change
@@ -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<RegExp> */ = [
- /.*\/__(mocks|tests)__\/.*/,
- /^Libraries\/Animated\/src\/polyfills\/.*/,
- /^Libraries\/Renderer\/fb\/.*/,
+ /.*[\\\/]__(mocks|tests)__[\\\/].*/,
+ /^Libraries[\\\/]Animated[\\\/]src[\\\/]polyfills[\\\/].*/,
+ /^Libraries[\\\/]Renderer[\\\/]fb[\\\/].*/,
];

const WHITELISTED_PREFIXES /*: Array<string> */ = [
@@ -32,7 +32,7 @@ const WHITELISTED_PREFIXES /*: Array<string> */ = [

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';
Expand Down
3 changes: 3 additions & 0 deletions startup/__snapshots__/App.spec.js.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`App Will render 1`] = `[Function]`;

0 comments on commit 5b3428f

Please sign in to comment.