mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
fix(ios): fix pod install --project-directory=ios failing (#37993)
This commit is contained in:
@@ -352,7 +352,7 @@ class CodegenUtilsTests < Test::Unit::TestCase
|
||||
'[Codegen] warn: using experimental new codegen integration'
|
||||
])
|
||||
assert_equal(codegen_utils_mock.get_react_codegen_script_phases_params, [{
|
||||
:app_path => "~/app",
|
||||
:app_path => app_path,
|
||||
:config_file_dir => "",
|
||||
:config_key => "codegenConfig",
|
||||
:fabric_enabled => false,
|
||||
@@ -361,7 +361,7 @@ class CodegenUtilsTests < Test::Unit::TestCase
|
||||
assert_equal(codegen_utils_mock.get_react_codegen_spec_params, [{
|
||||
:fabric_enabled => false,
|
||||
:folly_version=>"2021.07.22.00",
|
||||
:package_json_file => "../node_modules/react-native/package.json",
|
||||
:package_json_file => "#{app_path}/ios/../node_modules/react-native/package.json",
|
||||
:script_phases => "echo TestScript"
|
||||
}])
|
||||
assert_equal(codegen_utils_mock.generate_react_codegen_spec_params, [{
|
||||
|
||||
@@ -274,7 +274,7 @@ class CodegenUtils
|
||||
:config_key => config_key
|
||||
)
|
||||
react_codegen_spec = codegen_utils.get_react_codegen_spec(
|
||||
File.join(react_native_path, "package.json"),
|
||||
File.join(relative_installation_root, react_native_path, "package.json"),
|
||||
:folly_version => folly_version,
|
||||
:fabric_enabled => fabric_enabled,
|
||||
:hermes_enabled => hermes_enabled,
|
||||
|
||||
Reference in New Issue
Block a user