diff --git a/scripts/eject.js b/scripts/eject.js index 6e609c4f9f1..701907fa436 100644 --- a/scripts/eject.js +++ b/scripts/eject.js @@ -129,7 +129,7 @@ prompt( // Add Jest config console.log(' Adding ' + cyan('Jest') + ' configuration'); appPackage.jest = createJestConfig( - filePath => path.join('', filePath), + filePath => path.posix.join('', filePath), null, true ); diff --git a/scripts/test.js b/scripts/test.js index 9de5181d739..1a408215d66 100644 --- a/scripts/test.js +++ b/scripts/test.js @@ -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 )));