Commit b609ac96 authored by Joe Haddad's avatar Joe Haddad Committed by GitHub
Browse files

Use posix paths for Jest config during eject (#1635)

Resolves #1417 and #1498.
parent 51557979
Showing with 2 additions and 2 deletions
+2 -2
...@@ -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
); );
......
...@@ -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
))); )));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment