Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
adbc1a20
Commit
adbc1a20
authored
8 years ago
by
mustang
Committed by
Dan Abramov
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Instruct Jest to load native components from RNW instead of RN (#1201)
parent
9fd528c5
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/react-scripts/utils/createJestConfig.js
+3
-0
packages/react-scripts/utils/createJestConfig.js
with
3 additions
and
0 deletions
+3
-0
packages/react-scripts/utils/createJestConfig.js
+
3
-
0
View file @
adbc1a20
...
@@ -38,6 +38,9 @@ module.exports = (resolve, rootDir, isEjecting) => {
...
@@ -38,6 +38,9 @@ module.exports = (resolve, rootDir, isEjecting) => {
transformIgnorePatterns
:
[
transformIgnorePatterns
:
[
'
[/
\\\\
]node_modules[/
\\\\
].+
\\
.(js|jsx)$
'
'
[/
\\\\
]node_modules[/
\\\\
].+
\\
.(js|jsx)$
'
],
],
moduleNameMapper
:
{
'
^react-native$
'
:
'
react-native-web
'
}
};
};
if
(
rootDir
)
{
if
(
rootDir
)
{
config
.
rootDir
=
rootDir
;
config
.
rootDir
=
rootDir
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets