-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix Detox e2e tests broken after 0.73 update. (#366)
Detox was broken after upgrading the example app to RN0.73. The error was very cryptic and the solution equally so: ``` [CP-User] [Hermes] Replace Hermes for the right configuration, if needed ``` Solution: Delete `ios/.xcode.env.local`. facebook/react-native#42112 (comment)
- Loading branch information
Showing
5 changed files
with
82 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
echo "===== Installing all dependencies" | ||
yarn | ||
|
||
echo "===== Building native code" | ||
yarn expo-prebuild | ||
|
||
# HACK: This is needed to solve xcode build error: | ||
# "[CP-User] [Hermes] Replace Hermes for the right configuration, if needed" | ||
# https://github.com/facebook/react-native/issues/42112#issuecomment-1884536225 | ||
echo "===== Delete .xcode.env.local" | ||
rm -rf ./ios/.xcode.env.local | ||
|
||
echo "===== Start metro in background" | ||
yarn start & | ||
|
||
echo "===== Run ios tests" | ||
yarn detox-ios | ||
|
||
echo "===== Exit" | ||
kill -9 $(lsof -t -i:8081) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters