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
b609ac96
Commit
b609ac96
authored
8 years ago
by
Joe Haddad
Committed by
GitHub
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Use posix paths for Jest config during eject (#1635)
Resolves
#1417
and
#1498
.
parent
51557979
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/react-scripts/scripts/eject.js
+1
-1
packages/react-scripts/scripts/eject.js
packages/react-scripts/scripts/test.js
+1
-1
packages/react-scripts/scripts/test.js
with
2 additions
and
2 deletions
+2
-2
packages/react-scripts/scripts/eject.js
+
1
-
1
View file @
b609ac96
...
@@ -129,7 +129,7 @@ prompt(
...
@@ -129,7 +129,7 @@ prompt(
// Add Jest config
// Add Jest config
console
.
log
(
'
Adding
'
+
cyan
(
'
Jest
'
)
+
'
configuration
'
);
console
.
log
(
'
Adding
'
+
cyan
(
'
Jest
'
)
+
'
configuration
'
);
appPackage
.
jest
=
createJestConfig
(
appPackage
.
jest
=
createJestConfig
(
filePath
=>
path
.
join
(
'
<rootDir>
'
,
filePath
),
filePath
=>
path
.
posix
.
join
(
'
<rootDir>
'
,
filePath
),
null
,
null
,
true
true
);
);
...
...
This diff is collapsed.
Click to expand it.
packages/react-scripts/scripts/test.js
+
1
-
1
View file @
b609ac96
...
@@ -32,7 +32,7 @@ const createJestConfig = require('../utils/createJestConfig');
...
@@ -32,7 +32,7 @@ const createJestConfig = require('../utils/createJestConfig');
const
path
=
require
(
'
path
'
);
const
path
=
require
(
'
path
'
);
const
paths
=
require
(
'
../config/paths
'
);
const
paths
=
require
(
'
../config/paths
'
);
argv
.
push
(
'
--config
'
,
JSON
.
stringify
(
createJestConfig
(
argv
.
push
(
'
--config
'
,
JSON
.
stringify
(
createJestConfig
(
relativePath
=>
path
.
resolve
(
__dirname
,
'
..
'
,
relativePath
),
relativePath
=>
path
.
posix
.
resolve
(
__dirname
.
replace
(
/
[\\]
+/g
,
path
.
posix
.
sep
)
,
'
..
'
,
relativePath
),
path
.
resolve
(
paths
.
appSrc
,
'
..
'
),
path
.
resolve
(
paths
.
appSrc
,
'
..
'
),
false
false
)));
)));
...
...
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