Skip to content

Commit de1ab56

Browse files
committed
test(ios): bump detox / workaround detox emulator app terminate issue
1 parent 76baeca commit de1ab56

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"@react-native-firebase/private-tests-helpers": "0.0.13",
3535
"a2a": "^0.2.0",
3636
"babel-plugin-istanbul": "^6.0.0",
37-
"detox": "^19.7.1",
37+
"detox": "^19.9.1",
3838
"firebase": "^9.8.3",
3939
"firebase-tools": "11.6.0",
4040
"jest-circus": "^28.1.1",

tests/patches/detox+19.7.1.patch renamed to tests/patches/detox+19.9.1.patch

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,18 @@ index fb4b820..d2dc87d 100644
9393
notifyIdle()
9494
return true
9595
}
96+
diff --git a/node_modules/detox/src/devices/common/drivers/ios/tools/AppleSimUtils.js b/node_modules/detox/src/devices/common/drivers/ios/tools/AppleSimUtils.js
97+
index afedcf6..a14951a 100644
98+
--- a/node_modules/detox/src/devices/common/drivers/ios/tools/AppleSimUtils.js
99+
+++ b/node_modules/detox/src/devices/common/drivers/ios/tools/AppleSimUtils.js
100+
@@ -246,7 +246,9 @@ class AppleSimUtils {
101+
// ```
102+
// This workaround is done to ignore the error above, as we do not care if the app was running before, we just
103+
// want to make sure it isn't now.
104+
- if (err.code === 3 && err.stderr.includes(`the app is not currently running`)) {
105+
+ if (err.code === 3 &&
106+
+ (err.stderr.includes(`the app is not currently running`) ||
107+
+ err.stderr.includes(`The operation couldn’t be completed. found nothing to terminate`))) {
108+
return;
109+
}
110+

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6179,10 +6179,10 @@ detect-newline@^3.0.0:
61796179
resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-3.1.0.tgz#576f5dfc63ae1a192ff192d8ad3af6308991b651"
61806180
integrity sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==
61816181

6182-
detox@^19.7.1:
6183-
version "19.7.1"
6184-
resolved "https://registry.yarnpkg.com/detox/-/detox-19.7.1.tgz#1c4dfebbb024426118dfae97a0189a25021479fa"
6185-
integrity sha512-V0XwiaFX1LvIjLl+G4tzMZ0M4YqenQXAdTsw9kO2dVo6NC9RuYqOIsmT9M3CRN9PF22TKJ8pFdA6onYhH/zkiQ==
6182+
detox@^19.9.1:
6183+
version "19.9.1"
6184+
resolved "https://registry.yarnpkg.com/detox/-/detox-19.9.1.tgz#5f357b5e6bc6a4249e01ce9e0dc6cbca956b3241"
6185+
integrity sha512-SNhmS6VMycYVF/FHNfPR7rhpc/G/ft4c/Pqv6qt3TasBBjfdw5uI7SBAmIPMkPRkWtmAGdRycrFeJGFtBzpriA==
61866186
dependencies:
61876187
ajv "^8.6.3"
61886188
bunyan "^1.8.12"

0 commit comments

Comments
 (0)