diff --git a/scripts/test.js b/scripts/test.js index 1a408215d66..9de5181d739 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.posix.resolve(__dirname.replace(/[\\]+/g, path.posix.sep), '..', relativePath), + relativePath => path.resolve(__dirname, '..', relativePath), path.resolve(paths.appSrc, '..'), false )));