Skip to content

Commit

Permalink
chore(suite-native, e2e): fix debug E2E tests by patching expo-updates
Browse files Browse the repository at this point in the history
- Use patch untill expo/expo#32951 is merged and released.
  • Loading branch information
matejkriz committed Nov 19, 2024
1 parent 173d770 commit b438c73
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions patches/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@
## ripple-lib

allow passing custom agent to websocket constructor

## expo-updates

fix e2e tests in debug mode
upstream PR https://github.com/expo/expo/pull/32951
13 changes: 13 additions & 0 deletions patches/expo-updates+0.26.6.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/node_modules/expo-updates/android/src/main/java/expo/modules/updates/UpdatesPackage.kt b/node_modules/expo-updates/android/src/main/java/expo/modules/updates/UpdatesPackage.kt
index 6385d40..1f03038 100644
--- a/node_modules/expo-updates/android/src/main/java/expo/modules/updates/UpdatesPackage.kt
+++ b/node_modules/expo-updates/android/src/main/java/expo/modules/updates/UpdatesPackage.kt
@@ -97,7 +97,7 @@ class UpdatesPackage : Package {
val handler = object : ApplicationLifecycleListener {
override fun onCreate(application: Application) {
super.onCreate(application)
- if (isRunningAndroidTest()) {
+ if (!BuildConfig.USE_DEV_CLIENT && isRunningAndroidTest()) {
// Preload updates to prevent Detox ANR
UpdatesController.initialize(context)
UpdatesController.instance.launchAssetFile

0 comments on commit b438c73

Please sign in to comment.