We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94f5ba6 commit 2307cd3Copy full SHA for 2307cd3
tests/patches/jet+0.6.6-0.patch
@@ -0,0 +1,14 @@
1
+diff --git a/node_modules/jet/lib/node/patch/detox.js b/node_modules/jet/lib/node/patch/detox.js
2
+index fdca559..9092118 100644
3
+--- a/node_modules/jet/lib/node/patch/detox.js
4
++++ b/node_modules/jet/lib/node/patch/detox.js
5
+@@ -28,6 +28,9 @@ if (detox) {
6
+ // device.reloadReactNative({ ... })
7
+ // todo detoxOriginalReloadReactNative currently broken it seems
8
+ // const detoxOriginalReloadReactNative = originalDevice.reloadReactNative.bind(originalDevice);
9
++ if (!originalDevice) {
10
++ return undefined;
11
++ }
12
+ originalDevice.reloadReactNative = async () => {
13
+ ready.reset();
14
+ global.jet.reload();
0 commit comments