chore: add example with test cases (#1702)

PR adding TestsExample app which should include test cases for e.g. PRs.
It also removes package-lock.json since yarn is used.
This commit is contained in:
Wojciech Lewicki
2022-02-23 15:26:18 +01:00
committed by GitHub
parent 3bc3338d2a
commit 86813032c9
76 changed files with 10663 additions and 52155 deletions
+37
View File
@@ -0,0 +1,37 @@
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
platform :ios, '11.0'
install! 'cocoapods', :deterministic_uuids => false
target 'TestsExample' do
config = use_native_modules!
# Flags change depending on the env values.
flags = get_default_flags()
use_react_native!(
:path => config[:reactNativePath],
# to enable hermes on iOS, change `false` to `true` and then install pods
:hermes_enabled => flags[:hermes_enabled],
:fabric_enabled => flags[:fabric_enabled],
# An abosolute path to your application root.
:app_path => "#{Dir.pwd}/.."
)
target 'TestsExampleTests' do
inherit! :complete
# Pods for testing
end
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
use_flipper!()
post_install do |installer|
react_native_post_install(installer)
__apply_Xcode_12_5_M1_post_install_workaround(installer)
end
end