Skip to content

Commit fb14fd4

Browse files
kelsetfacebook-github-bot
authored andcommitted
Chore: Upgrade Detox to 16.7.2 (#30084)
Summary: With Xcode 12 being the latest, Detox 15.x has issues - in particular, it means that if you try to `yarn install` the dependencies for the repo, you'll be greeted by this error: ```bash error /<stuff>/react-native/node_modules/detox: Command failed. Exit code: 1 Command: node scripts/postinstall.js Arguments: Directory: /<stuff>/react-native/node_modules/detox Output: /<stuff>/Library/Detox/ios/5824c837515589f21c08f09b716a6eda088aa31f was found, but could not find Detox.framework inside it. This means that the Detox framework build process was interrupted. deleting /<stuff>/Library/Detox/ios/5824c837515589f21c08f09b716a6eda088aa31f and trying to rebuild. Extracting Detox sources... Building Detox.framework from /<stuff>/Developer/OSS/react-native/node_modules/detox/ios_src... child_process.js:637 throw err; ^ ``` With the {emoji:1f44d} of hramos & alloy I've prep'd up a small defensive PR that can be quickly merged before cutting 0.64, that bumps the version of Detox from 15.4.4 to the highest version available within the reach of "no breaking changes" in changelog. The main reason why with 16.x this error doesn't happen is that from [16.0.0](https://github.com/wix/Detox/releases/tag/16.0.0): > Detox now comes as a prebuilt framework on iOS, thus lowering npm install times and saving some build issues that happen due to unexpected Xcode setups. It would have been better to update directly to latest (at the time of writing 17.7.1) but there are at least two versions that had changelogs that seem to involve bigger changes: * https://github.com/wix/Detox/releases/tag/17.4.7 * https://github.com/wix/Detox/releases/tag/16.8.0 Hopefully CI will will show that the bump doesn't break any test � ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://github.com/facebook/react-native/wiki/Changelog --> [Internal] [Changed] - Bumped Detox in the repo to 16.7.2 for Xcode 12 compatibility Pull Request resolved: #30084 Test Plan: Running yarn in the main repo with Node 14 & Xcode 12, without this change, will cause the error copy-pasted above. After upgrading to this version, the error disappear. Reviewed By: cpojer Differential Revision: D24293226 Pulled By: hramos fbshipit-source-id: 2b4d23b033be621274966262ec19200bee44df58
1 parent 38eb3f8 commit fb14fd4

File tree

3 files changed

+17
-16
lines changed

3 files changed

+17
-16
lines changed

packages/rn-tester/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
},
2020
"devDependencies": {
2121
"connect": "^3.6.5",
22-
"detox": "15.4.4",
22+
"detox": "16.7.2",
2323
"ws": "^6.1.4"
2424
}
2525
}

repo-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"clang-format": "^1.2.4",
1919
"connect": "^3.6.5",
2020
"coveralls": "^3.0.2",
21-
"detox": "15.4.4",
21+
"detox": "16.7.2",
2222
"eslint": "6.8.0",
2323
"eslint-config-fb-strict": "^24.9.0",
2424
"eslint-config-fbjs": "2.1.0",

yarn.lock

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1723,10 +1723,10 @@ big-integer@^1.6.7:
17231723
resolved "https://registry.yarnpkg.com/big-integer/-/big-integer-1.6.36.tgz#78631076265d4ae3555c04f85e7d9d2f3a071a36"
17241724
integrity sha512-t70bfa7HYEA1D9idDbmuv7YbsbVkQ+Hp+8KFSul4aE5e/i1bjCNIRYJZlA8Q8p0r9T8cF/RVvwUgRA//FydEyg==
17251725

1726-
1727-
version "3.5.2"
1728-
resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.2.tgz#1be0908e054a751754549c270489c1505d4ab15a"
1729-
integrity sha512-dhHTWMI7kMx5whMQntl7Vr9C6BvV10lFXDAasnqnrMYhXVCzzk6IO9Fo2L75jXHT07WrOngL1WDXOp+yYS91Yg==
1726+
bluebird@^3.5.4:
1727+
version "3.7.2"
1728+
resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.7.2.tgz#9f229c15be272454ffa973ace0dbee79a1b0c36f"
1729+
integrity sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==
17301730

17311731
17321732
version "0.0.7"
@@ -2387,16 +2387,17 @@ detect-newline@^3.0.0:
23872387
resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-3.1.0.tgz#576f5dfc63ae1a192ff192d8ad3af6308991b651"
23882388
integrity sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==
23892389

2390-
detox@15.4.4:
2391-
version "15.4.4"
2392-
resolved "https://registry.yarnpkg.com/detox/-/detox-15.4.4.tgz#0f56b0eb9dd81b65e9bd6b3a8730f323dd6cd897"
2393-
integrity sha512-mbsw/REE3yDuq+0fbPZSktfV5OVO/80LMHsistgKUcBEEM3BrwLkZsji8a7syJj9tiDo+SsUjEzXGhQwDLlitA==
2390+
detox@16.7.2:
2391+
version "16.7.2"
2392+
resolved "https://registry.yarnpkg.com/detox/-/detox-16.7.2.tgz#531c98416adf52d4ba95601b669969acadafb970"
2393+
integrity sha512-+837eRgk4xOewXmeF5H6vOTn0RbKUFIyCi5UsTXEhvplsMk+KrrqfKik2j8fvubJkByry7HqIN/JF9jKe+meIQ==
23942394
dependencies:
23952395
"@babel/core" "^7.4.5"
23962396
bunyan "^1.8.12"
23972397
bunyan-debug-stream "^1.1.0"
23982398
chalk "^2.4.2"
23992399
child-process-promise "^2.2.0"
2400+
find-up "^4.1.0"
24002401
fs-extra "^4.0.2"
24012402
funpermaproxy "^1.0.1"
24022403
get-port "^2.1.0"
@@ -2407,7 +2408,7 @@ [email protected]:
24072408
sanitize-filename "^1.6.1"
24082409
shell-utils "^1.0.9"
24092410
tail "^2.0.0"
2410-
telnet-client "0.15.3"
2411+
telnet-client "1.2.8"
24112412
tempfile "^2.0.0"
24122413
which "^1.3.1"
24132414
ws "^3.3.1"
@@ -6781,12 +6782,12 @@ tar@^4:
67816782
safe-buffer "^5.1.2"
67826783
yallist "^3.0.2"
67836784

6784-
telnet-client@0.15.3:
6785-
version "0.15.3"
6786-
resolved "https://registry.yarnpkg.com/telnet-client/-/telnet-client-0.15.3.tgz#99ec754e4acf6fa51dc69898f574df3c2550712e"
6787-
integrity sha512-GSfdzQV0BKIYsmeXq7bJFJ2wHeJud6icaIxCUf6QCGQUD6R0BBGbT1+yLDhq67JRdgRpwyPwUbV7JxFeRrZomQ==
6785+
telnet-client@1.2.8:
6786+
version "1.2.8"
6787+
resolved "https://registry.yarnpkg.com/telnet-client/-/telnet-client-1.2.8.tgz#946c0dadc8daa3f19bb40a3e898cb870403a4ca4"
6788+
integrity sha512-W+w4k3QAmULVNhBVT2Fei369kGZCh/TH25M7caJAXW+hLxwoQRuw0di3cX4l0S9fgH3Mvq7u+IFMoBDpEw/eIg==
67886789
dependencies:
6789-
bluebird "3.5.x"
6790+
bluebird "^3.5.4"
67906791

67916792
temp-dir@^1.0.0:
67926793
version "1.0.0"

0 commit comments

Comments
 (0)