diff --git a/scripts/test.sh b/scripts/test.sh index 380ab6d8..3a7cf4e5 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -81,10 +81,6 @@ start_packager() { } xctest() { -# if ! [ -z "${JENKINS_HOME}" ]; then -# ${SRCROOT}/scripts/reset-simulators.sh -# fi - local dest="$(xcrun simctl list devices | grep -v unavailable | grep -m 1 -o '[0-9A-F\-]\{36\}')" if [ -n "$XCPRETTY" ]; then mkdir -p build @@ -126,6 +122,10 @@ case "$TARGET" in xctest RealmJS ;; "react-tests") + if ! [ -z "${JENKINS_HOME}" ]; then + ${SRCROOT}/scripts/reset-simulators.sh + fi + pushd tests/react-test-app npm install @@ -136,6 +136,10 @@ case "$TARGET" in xctest ReactTestApp || xctest ReactTestApp ;; "react-example") + if ! [ -z "${JENKINS_HOME}" ]; then + ${SRCROOT}/scripts/reset-simulators.sh + fi + pushd examples/ReactExample npm install