Skip to content
Open
Show file tree
Hide file tree
Changes from 30 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
354432e
fix(test): fix integration tests js app problems due to ES exports
artus9033 Sep 11, 2025
b8a93db
fix(test): fix unit tests compilation errors
artus9033 Sep 11, 2025
3908718
fix(test): fix AccessibilityManagerTest failing because of handling l…
artus9033 Sep 11, 2025
80289f8
test: disable AccessibilityManagerTest due to T225745315
artus9033 Sep 12, 2025
7c8e4a9
docs: update unit and integration tests instructions
artus9033 Sep 13, 2025
3a0dcd9
test: enable RCTLoggingTests
artus9033 Sep 18, 2025
c9d42b2
chore: update Podfile
artus9033 Sep 18, 2025
a41e886
fix(test): mock dispatch_async in RCTBlobManagerTests
artus9033 Sep 18, 2025
970228c
fix(test): use color constants for RCTConvert_UIColorTests::testGener…
artus9033 Sep 18, 2025
d9db57d
fix(test): update baseline strings in RCTBundleURLProviderTests
artus9033 Sep 18, 2025
cd572ab
fix(test): use default xctestplan environment variable values in test…
artus9033 Sep 18, 2025
30a93fc
fix(test): do not skip RCTBundleURLProviderTests in unit tests
artus9033 Sep 18, 2025
b34c885
Merge branch 'main' into fix/rntester-tests
artus9033 Sep 20, 2025
4c51544
fix: typechecking in IntegrationTestsApp.js
artus9033 Sep 20, 2025
462b28b
chore: update Podfile.lock
artus9033 Sep 20, 2025
c9484f1
chore: re-enable debugger in RNTester unit and integration tests
artus9033 Sep 20, 2025
efe4c5c
chore: update Podfile
artus9033 Sep 20, 2025
640e672
chore: revert changes to Podfile.lock
artus9033 Sep 23, 2025
a400089
fix: use ES exports in IntegrationTests sources, properly destructure…
artus9033 Sep 23, 2025
a1ae130
ci: run iOS unit & integration tests on CI
artus9033 Sep 24, 2025
9888b70
fix(test): fix codegen_utils-test.rb using removed mock helper Codege…
artus9033 Sep 24, 2025
dc24ea8
fix(test): bad indentation in ruby tests
artus9033 Sep 24, 2025
a8f6150
fix(test): ruby test - updated baselines in codegen_utils-test
artus9033 Sep 24, 2025
c627b3e
fix(test): ruby test - updated baselines in jsengine-test
artus9033 Sep 24, 2025
d753226
fix: missing requires in new_architecture.rb
artus9033 Sep 24, 2025
63ae020
fix(test): ruby test - updated baselines in new_architecture-test
artus9033 Sep 24, 2025
f92b135
fix(test): ruby test - updated baselines in utils-test
artus9033 Sep 24, 2025
42eb4c3
refactor: comment in codegen_utils-test.rb
artus9033 Sep 24, 2025
075bf29
Merge branch 'main' into fix/rntester-tests
artus9033 Sep 24, 2025
fa18880
Merge branch 'main' into fix/rntester-tests
artus9033 Sep 24, 2025
5182a1b
fix(test): fix order of arguments passed to assert_equal in Ruby tests
artus9033 Sep 24, 2025
c02cc35
fix(ci): bump up the target device of iOS test runner to a present one
artus9033 Sep 24, 2025
85138c0
Merge branch 'main' into fix/rntester-tests
artus9033 Sep 25, 2025
d3cb26c
chore: temporarily disable throwIfOnLegacyArch in RCTBridge
artus9033 Sep 28, 2025
b2ff94e
Merge branch 'main' into fix/rntester-tests
artus9033 Oct 1, 2025
3b208c9
fix(ci): include RCTTest source files in CI compilation that utilizes…
artus9033 Oct 2, 2025
f4b1eb5
fix(ci): correct path to test results in test-ios-rntester
artus9033 Oct 2, 2025
8fd5bc2
fix: explicitly define NDEBUG in objc-test
artus9033 Oct 2, 2025
d180f10
Merge branch 'main' into fix/rntester-tests
artus9033 Oct 2, 2025
bf04df5
fix(ci): conflicts between test artifacts' names
artus9033 Oct 3, 2025
ec7842c
Revert "fix: explicitly define NDEBUG in objc-test"
artus9033 Nov 5, 2025
9011f67
Merge branch 'main' into fix/rntester-tests
artus9033 Nov 5, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/actions/test-ios-rntester/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ inputs:
ruby-version:
description: The version of ruby that must be used
default: 2.6.10
run-unit-tests:
description: whether unit tests should run or not.
default: "false"
run-unit-integration-tests:
description: whether unit & integration tests should run or not.
default: "true"
hermes-tarball-artifacts-dir:
description: The directory where the hermes tarball artifacts are stored
default: /tmp/hermes/hermes-runtime-darwin
Expand Down Expand Up @@ -46,7 +46,7 @@ runs:
with:
ruby-version: ${{ inputs.ruby-version }}
- name: Prepare IOS Tests
if: ${{ inputs.run-unit-tests == 'true' }}
if: ${{ inputs.run-unit-integration-tests == 'true' }}
uses: ./.github/actions/prepare-ios-tests
- name: Set HERMES_ENGINE_TARBALL_PATH envvar if Hermes tarball is present
shell: bash
Expand Down Expand Up @@ -134,12 +134,12 @@ runs:
echo "App found at $APP_PATH"
echo "app-path=$APP_PATH" >> $GITHUB_ENV
- name: "Run Tests: iOS Unit and Integration Tests"
if: ${{ inputs.run-unit-tests == 'true' }}
if: ${{ inputs.run-unit-integration-tests == 'true' }}
shell: bash
run: yarn test-ios

- name: Zip Derived data folder
if: ${{ inputs.run-unit-tests == 'true' }}
if: ${{ inputs.run-unit-integration-tests == 'true' }}
shell: bash
run: |
echo "zipping tests results"
Expand All @@ -148,7 +148,7 @@ runs:
tar -zcvf xcresults.tar.gz $XCRESULT_PATH
- name: Upload artifact
uses: actions/[email protected]
if: ${{ inputs.run-unit-tests == 'true' }}
if: ${{ inputs.run-unit-integration-tests == 'true' }}
with:
name: xcresults
path: /Users/distiller/Library/Developer/Xcode/xcresults.tar.gz
Expand All @@ -159,7 +159,7 @@ runs:
name: RNTesterApp-NewArch-${{ inputs.flavor }}
path: ${{ env.app-path }}
- name: Store test results
if: ${{ inputs.run-unit-tests == 'true' }}
if: ${{ inputs.run-unit-integration-tests == 'true' }}
uses: actions/[email protected]
with:
name: test-results
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native/React/Base/RCTUtils.mm
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ BOOL RCTForceTouchAvailable(void)
[data base64EncodedStringWithOptions:(NSDataBase64EncodingOptions)0]]];
}

BOOL RCTIsGzippedData(NSData *__nullable); // exposed for unit testing purposes
extern "C" BOOL RCTIsGzippedData(NSData *__nullable); // exposed for unit testing purposes
BOOL RCTIsGzippedData(NSData *__nullable data)
{
UInt8 *bytes = (UInt8 *)data.bytes;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ class CodegenUtilsTests < Test::Unit::TestCase

def setup
CodegenUtils.set_react_codegen_discovery_done(false)
CodegenUtils.set_react_codegen_podspec_generated(false)
Pod::Config.reset()
@base_path = "~/app/ios"
Pathname.pwd!(@base_path)
Expand Down Expand Up @@ -96,9 +95,9 @@ def testUseReactCodegenDiscovery_whenAppPathUndefined_abort
])
end

# ============================= #
# =========================== #
# Test - CleanUpCodegenFolder #
# ============================= #
# =========================== #

def testCleanUpCodegenFolder_whenCleanupDone_doNothing
# Arrange
Expand Down Expand Up @@ -137,29 +136,33 @@ def testCleanUpCodegenFolder_whenFolderExists_deleteItAndSetCleanupDone
codegen_dir = "build/generated/ios"
codegen_path = "#{@base_path}/#{codegen_dir}"
globs = [
"/MyModuleSpecs/MyModule.h",
"#{codegen_path}/MyModuleSpecs/MyModule.mm",
"#{codegen_path}/react/components/MyComponent/ShadowNode.h",
"#{codegen_path}/react/components/MyComponent/ShadowNode.mm",
codegen_path
Comment on lines -140 to +139
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this baseline, these files apparently are no longer present anywhere

]
rn_path = '../node_modules/react-native'

DirMock.mocked_existing_dirs(codegen_path)
DirMock.mocked_existing_globs(globs, "#{codegen_path}/*")

original_define_singleton_method = CodegenUtils.method(:assert_codegen_folder_is_empty)
CodegenUtils.define_singleton_method(:assert_codegen_folder_is_empty) do |*args, **kwargs|
# no-op
end

Comment on lines +146 to +150
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This mock was missing

# Act
CodegenUtils.clean_up_build_folder(rn_path, codegen_dir, dir_manager: DirMock, file_manager: FileMock)

# Assert
assert_equal(DirMock.exist_invocation_params, [codegen_path, codegen_path])
assert_equal(DirMock.glob_invocation, ["#{codegen_path}/*", "#{codegen_path}/*"])
assert_equal(DirMock.exist_invocation_params, [codegen_path])
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is related to most (although, not all) assert_equal invocations in Ruby tests: the order of arguments is inverted, i.e., expected is swapped with actual. The signature is assert_equal(exp, act, msg = nil), while here and in all other places, the first argument is the actual value and the second is the expected value.

This deteriorates DX since makes it misleading to browse the messages of failed assertions:
image

assert_equal(FileUtils::FileUtilsStorage.rmrf_invocation_count, 3)
assert_equal(FileUtils::FileUtilsStorage.rmrf_paths, [
globs,
*globs,
"#{rn_path}/React/Fabric/RCTThirdPartyFabricComponentsProvider.h",
"#{rn_path}/React/Fabric/RCTThirdPartyFabricComponentsProvider.mm",
])
assert_equal(CodegenUtils.cleanup_done(), true)
ensure
# Restore original method so other tests are not affected
CodegenUtils.define_singleton_method(:assert_codegen_folder_is_empty, original_define_singleton_method)
end

# ===================================== #
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ def test_setupHermes_installsPods
setup_hermes!(:react_native_path => @react_native_path)

# Assert
assert_equal($podInvocationCount, 3)
assert_equal($podInvocation["React-jsi"][:path], "../../ReactCommon/jsi")
assert_equal($podInvocationCount, 2)
Copy link
Contributor Author

@artus9033 artus9033 Sep 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The setup_hermes helper now only adds 2 pods

hermes_engine_pod_invocation = $podInvocation["hermes-engine"]
assert_equal(hermes_engine_pod_invocation[:podspec], "../../sdks/hermes-engine/hermes-engine.podspec")
assert_equal(hermes_engine_pod_invocation[:tag], "")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ def test_modifyFlagsForNewArch_whenOnOldArch_doNothing
NewArchitectureHelper.modify_flags_for_new_architecture(installer, false)

# Assert
assert_equal(first_xcconfig.attributes["OTHER_CPLUSPLUSFLAGS"], "$(inherited) -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -DFOLLY_HAVE_CLOCK_GETTIME=1 -Wno-comma -Wno-shorten-64-to-32")
assert_equal(first_xcconfig.attributes["OTHER_CPLUSPLUSFLAGS"], "$(inherited) ")
assert_equal(first_xcconfig.save_as_invocation, ["a/path/First.xcconfig"])
assert_equal(second_xcconfig.attributes["OTHER_CPLUSPLUSFLAGS"], "$(inherited) -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -DFOLLY_HAVE_CLOCK_GETTIME=1 -Wno-comma -Wno-shorten-64-to-32")
assert_equal(second_xcconfig.attributes["OTHER_CPLUSPLUSFLAGS"], "$(inherited) ")
assert_equal(second_xcconfig.save_as_invocation, ["a/path/Second.xcconfig"])
assert_equal(react_core_debug_config.build_settings["OTHER_CPLUSPLUSFLAGS"], "$(inherited) -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -DFOLLY_HAVE_CLOCK_GETTIME=1 -Wno-comma -Wno-shorten-64-to-32")
assert_equal(react_core_release_config.build_settings["OTHER_CPLUSPLUSFLAGS"], "$(inherited) -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -DFOLLY_HAVE_CLOCK_GETTIME=1 -Wno-comma -Wno-shorten-64-to-32")
assert_equal(react_core_debug_config.build_settings["OTHER_CPLUSPLUSFLAGS"], "$(inherited) ")
assert_equal(react_core_release_config.build_settings["OTHER_CPLUSPLUSFLAGS"], "$(inherited) ")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cipolleschi Riccardo, could you verify this is correct behaviour for an old arch scenario?

assert_equal(yoga_debug_config.build_settings["OTHER_CPLUSPLUSFLAGS"], "$(inherited)")
assert_equal(yoga_release_config.build_settings["OTHER_CPLUSPLUSFLAGS"], "$(inherited)")
end
Expand All @@ -101,15 +101,15 @@ def test_modifyFlagsForNewArch_whenOnNewArchAndIsRelease_updateFlags
NewArchitectureHelper.modify_flags_for_new_architecture(installer, true)

# Assert
assert_equal(first_xcconfig.attributes["OTHER_CPLUSPLUSFLAGS"], "$(inherited) -DRCT_NEW_ARCH_ENABLED=1")
assert_equal(first_xcconfig.attributes["OTHER_CPLUSPLUSFLAGS"], "$(inherited) -DRCT_NEW_ARCH_ENABLED=1 ")
assert_nil(first_xcconfig.attributes["OTHER_CFLAGS"])
assert_equal(first_xcconfig.save_as_invocation, ["a/path/First.xcconfig"])
assert_equal(second_xcconfig.attributes["OTHER_CPLUSPLUSFLAGS"], "$(inherited) -DRCT_NEW_ARCH_ENABLED=1")
assert_equal(second_xcconfig.attributes["OTHER_CPLUSPLUSFLAGS"], "$(inherited) -DRCT_NEW_ARCH_ENABLED=1 ")
assert_nil(second_xcconfig.attributes["OTHER_CFLAGS"])
assert_equal(second_xcconfig.save_as_invocation, ["a/path/Second.xcconfig"])
assert_equal(react_core_debug_config.build_settings["OTHER_CPLUSPLUSFLAGS"], "$(inherited) -DRCT_NEW_ARCH_ENABLED=1")
assert_equal(react_core_debug_config.build_settings["OTHER_CPLUSPLUSFLAGS"], "$(inherited) -DRCT_NEW_ARCH_ENABLED=1 ")
assert_nil(react_core_debug_config.build_settings["OTHER_CFLAGS"])
assert_equal(react_core_release_config.build_settings["OTHER_CPLUSPLUSFLAGS"], "$(inherited) -DRCT_NEW_ARCH_ENABLED=1")
assert_equal(react_core_release_config.build_settings["OTHER_CPLUSPLUSFLAGS"], "$(inherited) -DRCT_NEW_ARCH_ENABLED=1 ")
assert_nil(react_core_release_config.build_settings["OTHER_CFLAGS"])
assert_equal(yoga_debug_config.build_settings["OTHER_CPLUSPLUSFLAGS"], "$(inherited)")
assert_nil(yoga_debug_config.build_settings["OTHER_CFLAGS"])
Expand All @@ -125,22 +125,30 @@ def test_installModulesDependencies_whenNewArchEnabledAndNewArchAndNoSearchPaths
spec = SpecMock.new

# Act
ENV["RCT_NEW_ARCH_ENABLED"] = "1"
NewArchitectureHelper.install_modules_dependencies(spec, true, '2024.10.14.00')

# Assert
folly_config = Helpers::Constants.folly_config
folly_compiler_flags = folly_config[:compiler_flags]
Comment on lines -131 to -132
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unused. The NewArchitectureHelper has a getter of that name, but no setter. I tried implementing it, but test results haven't change, so I assumed this is dead code. WDYT @cipolleschi ?


assert_equal(spec.compiler_flags, "-DRCT_NEW_ARCH_ENABLED=1")
assert_equal(spec.pod_target_xcconfig["HEADER_SEARCH_PATHS"], "\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/Headers/Private/Yoga\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/fast_float/include\" \"$(PODS_ROOT)/fmt/include\" \"${PODS_CONFIGURATION_BUILD_DIR}/React-graphics/React_graphics.framework/Headers\" \"${PODS_CONFIGURATION_BUILD_DIR}/React-graphics/React_graphics.framework/Headers/react/renderer/graphics/platform/ios\" \"${PODS_CONFIGURATION_BUILD_DIR}/React-Fabric/React_Fabric.framework/Headers\" \"${PODS_CONFIGURATION_BUILD_DIR}/React-Fabric/React_Fabric.framework/Headers/react/renderer/components/view/platform/cxx\" \"${PODS_CONFIGURATION_BUILD_DIR}/React-FabricImage/React_FabricImage.framework/Headers\" \"${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon/ReactCommon.framework/Headers\" \"${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon/ReactCommon.framework/Headers/react/nativemodule/core\" \"${PODS_CONFIGURATION_BUILD_DIR}/React-NativeModulesApple/React_NativeModulesApple.framework/Headers\" \"${PODS_CONFIGURATION_BUILD_DIR}/React-RCTFabric/RCTFabric.framework/Headers\" \"${PODS_CONFIGURATION_BUILD_DIR}/React-utils/React_utils.framework/Headers\" \"${PODS_CONFIGURATION_BUILD_DIR}/React-featureflags/React_featureflags.framework/Headers\" \"${PODS_CONFIGURATION_BUILD_DIR}/React-debug/React_debug.framework/Headers\" \"${PODS_CONFIGURATION_BUILD_DIR}/React-ImageManager/React_ImageManager.framework/Headers\" \"${PODS_CONFIGURATION_BUILD_DIR}/React-rendererdebug/React_rendererdebug.framework/Headers\"")
assert_equal(
spec.pod_target_xcconfig["HEADER_SEARCH_PATHS"],
[
"\"$(PODS_ROOT)/Headers/Private/Yoga\"",
"$(PODS_ROOT)/glog",
"$(PODS_ROOT)/boost",
"$(PODS_ROOT)/DoubleConversion",
"$(PODS_ROOT)/fast_float/include",
"$(PODS_ROOT)/fmt/include",
"$(PODS_ROOT)/SocketRocket",
"$(PODS_ROOT)/RCT-Folly"
]
)
Comment on lines 135 to 145
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This apparently is the correct baseline currently

assert_equal(spec.pod_target_xcconfig["CLANG_CXX_LANGUAGE_STANDARD"], "c++20")
assert_equal(spec.pod_target_xcconfig["OTHER_CPLUSPLUSFLAGS"], "$(inherited) -DRCT_NEW_ARCH_ENABLED=1")
assert_equal(spec.pod_target_xcconfig["OTHER_CPLUSPLUSFLAGS"], "$(inherited) -DRCT_NEW_ARCH_ENABLED=1 ")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will touch not only this line, but all other occurences of -DRCT_NEW_ARCH_ENABLED=1 in the baselines: apparently, the current implementation appends a trailing whitespace to the define (source here). Even in the same file, it appears that the whitespace is intentionally being stripped in one place. I tried stripping it and the tests still pass. I wanted to consult with you Riccardo @cipolleschi if you agree that we are safe to strip this one?

assert_equal(
spec.dependencies,
[
{ :dependency_name => "React-Core" },
{ :dependency_name => "ReactNativeDependencies" },
{ :dependency_name => "glog" },
{ :dependency_name => "React-RCTFabric" },
{ :dependency_name => "ReactCodegen" },
{ :dependency_name => "RCTRequired" },
Expand All @@ -156,33 +164,42 @@ def test_installModulesDependencies_whenNewArchEnabledAndNewArchAndNoSearchPaths
{ :dependency_name => "React-debug" },
{ :dependency_name => "React-ImageManager" },
{ :dependency_name => "React-rendererdebug" },
{ :dependency_name => "React-jsi" },
{ :dependency_name => "React-renderercss" },
{ :dependency_name => "hermes-engine" },
{ :dependency_name => "glog" },
{ :dependency_name => "boost" },
{ :dependency_name => "DoubleConversion" },
{ :dependency_name => "hermes-engine" }
])
{ :dependency_name => "fast_float" },
{ :dependency_name => "fmt" },
{ :dependency_name => "RCT-Folly" },
{ :dependency_name => "SocketRocket" },
{ :dependency_name => "RCT-Folly/Fabric" },
]
)
end

def test_installModulesDependencies_whenNewArchDisabledAndSearchPathsAndCompilerFlagsArePresent_itInstallDependenciesAndPreserveOtherSettings
# Arrange
spec = SpecMock.new
spec.compiler_flags = ''
other_flags = "\"$(ReactNativeDependencies)/boost\" \"${PODS_CONFIGURATION_BUILD_DIR}/ReactCodegen/ReactCodegen.framework/Headers\""
other_flags_arr = ["\"$(ReactNativeDependencies)/boost\"", "\"${PODS_CONFIGURATION_BUILD_DIR}/ReactCodegen/ReactCodegen.framework/Headers\""]
spec.pod_target_xcconfig = {
"HEADER_SEARCH_PATHS" => other_flags
"HEADER_SEARCH_PATHS" => other_flags_arr.join(" ")
}

# Act
ENV["RCT_NEW_ARCH_ENABLED"] = nil
NewArchitectureHelper.install_modules_dependencies(spec, false, '2024.10.14.00')

# Assert
assert_equal(Helpers::Constants.folly_config[:compiler_flags], "#{NewArchitectureHelper.folly_compiler_flags}")
assert_equal(spec.pod_target_xcconfig["HEADER_SEARCH_PATHS"], "#{other_flags} \"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/Headers/Private/Yoga\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/fast_float/include\" \"$(PODS_ROOT)/fmt/include\" \"${PODS_CONFIGURATION_BUILD_DIR}/React-graphics/React_graphics.framework/Headers\" \"${PODS_CONFIGURATION_BUILD_DIR}/React-graphics/React_graphics.framework/Headers/react/renderer/graphics/platform/ios\" \"${PODS_CONFIGURATION_BUILD_DIR}/React-Fabric/React_Fabric.framework/Headers\" \"${PODS_CONFIGURATION_BUILD_DIR}/React-Fabric/React_Fabric.framework/Headers/react/renderer/components/view/platform/cxx\" \"${PODS_CONFIGURATION_BUILD_DIR}/React-FabricImage/React_FabricImage.framework/Headers\" \"${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon/ReactCommon.framework/Headers\" \"${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon/ReactCommon.framework/Headers/react/nativemodule/core\" \"${PODS_CONFIGURATION_BUILD_DIR}/React-NativeModulesApple/React_NativeModulesApple.framework/Headers\" \"${PODS_CONFIGURATION_BUILD_DIR}/React-RCTFabric/RCTFabric.framework/Headers\" \"${PODS_CONFIGURATION_BUILD_DIR}/React-utils/React_utils.framework/Headers\" \"${PODS_CONFIGURATION_BUILD_DIR}/React-featureflags/React_featureflags.framework/Headers\" \"${PODS_CONFIGURATION_BUILD_DIR}/React-debug/React_debug.framework/Headers\" \"${PODS_CONFIGURATION_BUILD_DIR}/React-ImageManager/React_ImageManager.framework/Headers\" \"${PODS_CONFIGURATION_BUILD_DIR}/React-rendererdebug/React_rendererdebug.framework/Headers\"")
assert_equal(spec.pod_target_xcconfig["HEADER_SEARCH_PATHS"], [*other_flags_arr, '"$(PODS_ROOT)/Headers/Private/Yoga"', '$(PODS_ROOT)/glog', '$(PODS_ROOT)/boost', '$(PODS_ROOT)/DoubleConversion', '$(PODS_ROOT)/fast_float/include', '$(PODS_ROOT)/fmt/include', '$(PODS_ROOT)/SocketRocket', '$(PODS_ROOT)/RCT-Folly'])
assert_equal(spec.pod_target_xcconfig["CLANG_CXX_LANGUAGE_STANDARD"], "c++20")
assert_equal(
spec.dependencies,
[
{ :dependency_name => "React-Core" },
{ :dependency_name => "RCT-Folly", "version"=>"2024.10.14.00" },
{ :dependency_name => "glog" },
{ :dependency_name => "React-RCTFabric" },
{ :dependency_name => "ReactCodegen" },
{ :dependency_name => "RCTRequired" },
Expand All @@ -198,8 +215,16 @@ def test_installModulesDependencies_whenNewArchDisabledAndSearchPathsAndCompiler
{ :dependency_name => "React-debug" },
{ :dependency_name => "React-ImageManager" },
{ :dependency_name => "React-rendererdebug" },
{ :dependency_name => "React-jsi" },
{ :dependency_name => "React-renderercss" },
{ :dependency_name => "hermes-engine" },
{ :dependency_name => "glog" },
{ :dependency_name => "boost" },
{ :dependency_name => "DoubleConversion" },
{ :dependency_name => "hermes-engine" }
{ :dependency_name => "fast_float" },
{ :dependency_name => "fmt" },
{ :dependency_name => "RCT-Folly" },
{ :dependency_name => "SocketRocket" },
]
)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ def self.write_to_path(hash, path)
def self.reset()
@@path_to_file_mapping.clear
end
end
end
end
Loading
Loading