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

Resolves #1417 and #1498.
This commit is contained in:
Joe Haddad
2017-02-24 17:06:54 -05:00
committed by GitHub
parent 5155797983
commit b609ac96fe
2 changed files with 2 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ const createJestConfig = require('../utils/createJestConfig');
const path = require('path');
const paths = require('../config/paths');
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, '..'),
false
)));