From eb34d80af7285e59872137b1502eb2420872ed7a Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Sun, 26 Feb 2017 13:35:24 +0000 Subject: [PATCH] Fix npm test on Windows (#1647) --- packages/react-scripts/scripts/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-scripts/scripts/test.js b/packages/react-scripts/scripts/test.js index 1a408215d66..9de5181d739 100644 --- a/packages/react-scripts/scripts/test.js +++ b/packages/react-scripts/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 )));