Skip to content

Commit 5b3428f

Browse files
committed
fix via the pulling in a commit that fixes the problem
facebook/react-native@3ac86c3#diff-29da09058a4c266666d570f9fc605b04
1 parent 374ff26 commit 5b3428f

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

patches/react-native+0.56.0.patch

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,28 @@
11
patch-package
2+
--- a/node_modules/react-native/jest/hasteImpl.js
3+
+++ b/node_modules/react-native/jest/hasteImpl.js
4+
@@ -18,9 +18,9 @@ const ROOTS = [
5+
];
6+
7+
const BLACKLISTED_PATTERNS /*: Array<RegExp> */ = [
8+
- /.*\/__(mocks|tests)__\/.*/,
9+
- /^Libraries\/Animated\/src\/polyfills\/.*/,
10+
- /^Libraries\/Renderer\/fb\/.*/,
11+
+ /.*[\\\/]__(mocks|tests)__[\\\/].*/,
12+
+ /^Libraries[\\\/]Animated[\\\/]src[\\\/]polyfills[\\\/].*/,
13+
+ /^Libraries[\\\/]Renderer[\\\/]fb[\\\/].*/,
14+
];
15+
16+
const WHITELISTED_PREFIXES /*: Array<string> */ = [
17+
@@ -32,7 +32,7 @@ const WHITELISTED_PREFIXES /*: Array<string> */ = [
18+
19+
const NAME_REDUCERS /*: Array<[RegExp, string]> */ = [
20+
// extract basename
21+
- [/^(?:.*\/)?([a-zA-Z0-9$_.-]+)$/, '$1'],
22+
+ [/^(?:.*[\\\/])?([a-zA-Z0-9$_.-]+)$/, '$1'],
23+
// strip .js/.js.flow suffix
24+
[/^(.*)\.js(\.flow)?$/, '$1'],
25+
// strip .android/.ios/.native/.web suffix
226
--- a/node_modules/react-native/local-cli/bundle/assetPathUtils.js
327
+++ b/node_modules/react-native/local-cli/bundle/assetPathUtils.js
428
@@ -19,17 +19,17 @@ import type {PackagerAsset} from '../../Libraries/Image/AssetRegistry';
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`App Will render 1`] = `[Function]`;

0 commit comments

Comments
 (0)