Fix RNTester on Windows (#19974)

Summary:
Currrent, RNTester can not work on windows.
* Fixes https://github.com/facebook/react-native/issues/19654.
Pull Request resolved: https://github.com/facebook/react-native/pull/19974

Differential Revision: D9150453

Pulled By: rafeca

fbshipit-source-id: 1bd2046fbe0e8eaadf249604357c2e6acd80455e
This commit is contained in:
gengjiawen 2018-08-03 13:25:02 -07:00 committed by Facebook Github Bot
parent f17047e230
commit a286c0e753
2 changed files with 2 additions and 3 deletions

View File

@ -103,7 +103,6 @@
"scripts/ios-install-third-party.sh",
"scripts/launchPackager.bat",
"scripts/launchPackager.command",
"scripts/packager.sh",
"scripts/react-native-xcode.sh",
"jest-preset.json",
"jest",
@ -123,12 +122,12 @@
"third-party-podspecs"
],
"scripts": {
"start": "node ./local-cli/cli.js start",
"test": "jest",
"test-ci": "JEST_JUNIT_OUTPUT=\"reports/junit/js-test-results.xml\" jest --maxWorkers=2 --ci --testResultsProcessor=\"jest-junit\"",
"flow": "flow",
"lint": "eslint .",
"prettier": "prettier \"./**/*.js\" --write",
"start": "/usr/bin/env bash -c './scripts/packager.sh \"$@\" || true' --",
"docker-setup-android": "docker pull reactnativeci/android-base:latest",
"docker-build-android-base": "docker build -t reactnativeci/android-base -f ContainerShip/Dockerfile.android-base .",
"docker-build-android": "docker build -t reactnativeci/android -f ContainerShip/Dockerfile.android .",

View File

@ -56,7 +56,7 @@ function waitForPackager {
if [ "$1" = "test" ]; then
# Start the packager
./scripts/packager.sh --max-workers=1 || echo "Can't start packager automatically" &
npm run start --max-workers=1 || echo "Can't start packager automatically" &
# Start the WebSocket test server
open "./IntegrationTests/launchWebSocketServer.command" || echo "Can't start web socket server automatically"