Skip to content

Commit

Permalink
Fix rn test path for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieldonadel committed May 24, 2023
1 parent c243149 commit 3dffd62
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,12 @@ def testCheckAndGenerateEmptyThirdPartyProvider_whenBothMissing_buildCodegen()

def testCheckAndGenerateEmptyThirdPartyProvider_withAbsoluteReactNativePath_buildCodegen()
# Arrange
rn_path = begin
`node --print "require.resolve('react-native/package.json')"`.strip
rescue
# Fallback path for CI
'/Users/distiller/react-native/packages/react-native'
end
rn_path = File.dirname(`node --print "require.resolve('react-native/package.json')"`)
codegen_cli_path = rn_path + "/../@react-native/codegen"
DirMock.mocked_existing_dirs([
Expand Down

0 comments on commit 3dffd62

Please sign in to comment.