mirror of
https://github.com/status-im/react-native.git
synced 2025-01-11 10:06:31 +00:00
e315ec9891
Summary:
We opt in to version ^5 of the React Native Babel Preset, as required after the bump to Babel 7. This fixes the Objective-C end-to-end test failure in master. (Fixes #19538)
See 34bd776af2 (commitcomment-29024085)
for prior discussion.
There have already been several changes made to the repo during the transition to Babel 7. This PR brings all tests back to green and allows us to move forward with the 0.56 branch cut.
We also bump our tests to use Xcode 9.4.0 and iOS 11.4, the latest stable versions of both.
Once the 0.56 branch makes it to stable, we can change `react-native-babel-preset@latest` on npm to point to `react-native-babel-preset@5.0.1` (or newer), and undo the change made to `init.js` we made as part of this diff.
Wait for Circle CI to run: https://circleci.com/workflow-run/e39a66d7-bf8a-4b31-a22f-eef30a2c53bc
[GENERAL] [BREAKING] [Babel] - Bump React Native Babel Preset version used by RN CLI to Babel v7 compliant release
Closes https://github.com/facebook/react-native/pull/19625
Reviewed By: TheSavior
Differential Revision: D8343861
Pulled By: hramos
fbshipit-source-id: 42644d5b0bfb40a8bc592ae3461c5008deef8232
23 lines
618 B
Bash
Executable File
23 lines
618 B
Bash
Executable File
#!/bin/bash
|
|
set -ex
|
|
|
|
# Script used to run iOS tests.
|
|
# If not arguments are passed to the script, it will only compile
|
|
# the RNTester.
|
|
# If the script is called with a single argument "test", we'll
|
|
# also run the RNTester integration test (needs JS and packager):
|
|
# ./objc-test-ios.sh test
|
|
|
|
SCRIPTS=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
ROOT=$(dirname "$SCRIPTS")
|
|
|
|
cd "$ROOT"
|
|
|
|
export TEST_NAME="iOS"
|
|
export SCHEME="RNTester"
|
|
export SDK="iphonesimulator"
|
|
export DESTINATION="platform=iOS Simulator,name=iPhone 5s,OS=11.4"
|
|
|
|
# If there's a "test" argument, pass it to the test script.
|
|
. ./scripts/objc-test.sh $1
|