mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-06-16 18:39:21 +08:00
Fix npm test on Windows (#1647)
This commit is contained in:
2
packages/react-scripts/scripts/test.js
vendored
2
packages/react-scripts/scripts/test.js
vendored
@@ -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
|
||||
)));
|
||||
|
||||
Reference in New Issue
Block a user