detox 20.0.3-breaking.new-global-lifecycle.0 → 20.0.4-breaking.new-global-lifecycle.0
Sign up to get free protection for your applications and to get access to all the features.
- package/Detox-android/com/wix/detox/{20.0.3-breaking.new-global-lifecycle.0/detox-20.0.3-breaking.new-global-lifecycle.0-javadoc.jar → 20.0.4-breaking.new-global-lifecycle.0/detox-20.0.4-breaking.new-global-lifecycle.0-javadoc.jar} +0 -0
- package/Detox-android/com/wix/detox/20.0.4-breaking.new-global-lifecycle.0/detox-20.0.4-breaking.new-global-lifecycle.0-javadoc.jar.md5 +1 -0
- package/Detox-android/com/wix/detox/20.0.4-breaking.new-global-lifecycle.0/detox-20.0.4-breaking.new-global-lifecycle.0-javadoc.jar.sha1 +1 -0
- package/Detox-android/com/wix/detox/20.0.4-breaking.new-global-lifecycle.0/detox-20.0.4-breaking.new-global-lifecycle.0-javadoc.jar.sha256 +1 -0
- package/Detox-android/com/wix/detox/20.0.4-breaking.new-global-lifecycle.0/detox-20.0.4-breaking.new-global-lifecycle.0-javadoc.jar.sha512 +1 -0
- package/Detox-android/com/wix/detox/{20.0.3-breaking.new-global-lifecycle.0/detox-20.0.3-breaking.new-global-lifecycle.0-sources.jar → 20.0.4-breaking.new-global-lifecycle.0/detox-20.0.4-breaking.new-global-lifecycle.0-sources.jar} +0 -0
- package/Detox-android/com/wix/detox/20.0.4-breaking.new-global-lifecycle.0/detox-20.0.4-breaking.new-global-lifecycle.0-sources.jar.md5 +1 -0
- package/Detox-android/com/wix/detox/20.0.4-breaking.new-global-lifecycle.0/detox-20.0.4-breaking.new-global-lifecycle.0-sources.jar.sha1 +1 -0
- package/Detox-android/com/wix/detox/20.0.4-breaking.new-global-lifecycle.0/detox-20.0.4-breaking.new-global-lifecycle.0-sources.jar.sha256 +1 -0
- package/Detox-android/com/wix/detox/20.0.4-breaking.new-global-lifecycle.0/detox-20.0.4-breaking.new-global-lifecycle.0-sources.jar.sha512 +1 -0
- package/Detox-android/com/wix/detox/{20.0.3-breaking.new-global-lifecycle.0/detox-20.0.3-breaking.new-global-lifecycle.0.aar → 20.0.4-breaking.new-global-lifecycle.0/detox-20.0.4-breaking.new-global-lifecycle.0.aar} +0 -0
- package/Detox-android/com/wix/detox/{20.0.3-breaking.new-global-lifecycle.0/detox-20.0.3-breaking.new-global-lifecycle.0.aar.md5 → 20.0.4-breaking.new-global-lifecycle.0/detox-20.0.4-breaking.new-global-lifecycle.0.aar.md5} +0 -0
- package/Detox-android/com/wix/detox/{20.0.3-breaking.new-global-lifecycle.0/detox-20.0.3-breaking.new-global-lifecycle.0.aar.sha1 → 20.0.4-breaking.new-global-lifecycle.0/detox-20.0.4-breaking.new-global-lifecycle.0.aar.sha1} +0 -0
- package/Detox-android/com/wix/detox/{20.0.3-breaking.new-global-lifecycle.0/detox-20.0.3-breaking.new-global-lifecycle.0.aar.sha256 → 20.0.4-breaking.new-global-lifecycle.0/detox-20.0.4-breaking.new-global-lifecycle.0.aar.sha256} +0 -0
- package/Detox-android/com/wix/detox/{20.0.3-breaking.new-global-lifecycle.0/detox-20.0.3-breaking.new-global-lifecycle.0.aar.sha512 → 20.0.4-breaking.new-global-lifecycle.0/detox-20.0.4-breaking.new-global-lifecycle.0.aar.sha512} +0 -0
- package/Detox-android/com/wix/detox/{20.0.3-breaking.new-global-lifecycle.0/detox-20.0.3-breaking.new-global-lifecycle.0.pom → 20.0.4-breaking.new-global-lifecycle.0/detox-20.0.4-breaking.new-global-lifecycle.0.pom} +1 -1
- package/Detox-android/com/wix/detox/20.0.4-breaking.new-global-lifecycle.0/detox-20.0.4-breaking.new-global-lifecycle.0.pom.md5 +1 -0
- package/Detox-android/com/wix/detox/20.0.4-breaking.new-global-lifecycle.0/detox-20.0.4-breaking.new-global-lifecycle.0.pom.sha1 +1 -0
- package/Detox-android/com/wix/detox/20.0.4-breaking.new-global-lifecycle.0/detox-20.0.4-breaking.new-global-lifecycle.0.pom.sha256 +1 -0
- package/Detox-android/com/wix/detox/20.0.4-breaking.new-global-lifecycle.0/detox-20.0.4-breaking.new-global-lifecycle.0.pom.sha512 +1 -0
- package/Detox-android/com/wix/detox/maven-metadata.xml +4 -4
- package/Detox-android/com/wix/detox/maven-metadata.xml.md5 +1 -1
- package/Detox-android/com/wix/detox/maven-metadata.xml.sha1 +1 -1
- package/Detox-android/com/wix/detox/maven-metadata.xml.sha256 +1 -1
- package/Detox-android/com/wix/detox/maven-metadata.xml.sha512 +1 -1
- package/Detox-ios-src.tbz +0 -0
- package/Detox-ios.tbz +0 -0
- package/package.json +2 -2
- package/src/realms/DetoxPrimaryContext.js +1 -1
- package/src/realms/DetoxSecondaryContext.js +29 -23
- package/Detox-android/com/wix/detox/20.0.3-breaking.new-global-lifecycle.0/detox-20.0.3-breaking.new-global-lifecycle.0-javadoc.jar.md5 +0 -1
- package/Detox-android/com/wix/detox/20.0.3-breaking.new-global-lifecycle.0/detox-20.0.3-breaking.new-global-lifecycle.0-javadoc.jar.sha1 +0 -1
- package/Detox-android/com/wix/detox/20.0.3-breaking.new-global-lifecycle.0/detox-20.0.3-breaking.new-global-lifecycle.0-javadoc.jar.sha256 +0 -1
- package/Detox-android/com/wix/detox/20.0.3-breaking.new-global-lifecycle.0/detox-20.0.3-breaking.new-global-lifecycle.0-javadoc.jar.sha512 +0 -1
- package/Detox-android/com/wix/detox/20.0.3-breaking.new-global-lifecycle.0/detox-20.0.3-breaking.new-global-lifecycle.0-sources.jar.md5 +0 -1
- package/Detox-android/com/wix/detox/20.0.3-breaking.new-global-lifecycle.0/detox-20.0.3-breaking.new-global-lifecycle.0-sources.jar.sha1 +0 -1
- package/Detox-android/com/wix/detox/20.0.3-breaking.new-global-lifecycle.0/detox-20.0.3-breaking.new-global-lifecycle.0-sources.jar.sha256 +0 -1
- package/Detox-android/com/wix/detox/20.0.3-breaking.new-global-lifecycle.0/detox-20.0.3-breaking.new-global-lifecycle.0-sources.jar.sha512 +0 -1
- package/Detox-android/com/wix/detox/20.0.3-breaking.new-global-lifecycle.0/detox-20.0.3-breaking.new-global-lifecycle.0.pom.md5 +0 -1
- package/Detox-android/com/wix/detox/20.0.3-breaking.new-global-lifecycle.0/detox-20.0.3-breaking.new-global-lifecycle.0.pom.sha1 +0 -1
- package/Detox-android/com/wix/detox/20.0.3-breaking.new-global-lifecycle.0/detox-20.0.3-breaking.new-global-lifecycle.0.pom.sha256 +0 -1
- package/Detox-android/com/wix/detox/20.0.3-breaking.new-global-lifecycle.0/detox-20.0.3-breaking.new-global-lifecycle.0.pom.sha512 +0 -1
@@ -0,0 +1 @@
|
|
1
|
+
4b124d7ab9e2288b4321b82987147ed7
|
@@ -0,0 +1 @@
|
|
1
|
+
f63f383626ed499ea635330561ee65f67926ade7
|
@@ -0,0 +1 @@
|
|
1
|
+
f73cf8db8e2a2d9f007e8f0e1b10c8a3206425ff5b48eecab8780d32adbb12fb
|
@@ -0,0 +1 @@
|
|
1
|
+
e21d314a45864e21cbea7bf17e9d23814def296e92b3b75ce64ca504f68d3b9aedc17c1beecd90407b9cb6e04803eb2d9ea4e2b9b4791ef34fc6aab597150770
|
@@ -0,0 +1 @@
|
|
1
|
+
4a9616f1535e129e7eeddbcc6d20b383
|
@@ -0,0 +1 @@
|
|
1
|
+
ab806e0458f9ffdadb4b758f356e55afd5c47db2
|
@@ -0,0 +1 @@
|
|
1
|
+
407c01beb305d15307e9defed1c41b643e01db58a1f15a4fa68b177e0ef7de49
|
@@ -0,0 +1 @@
|
|
1
|
+
0f48a23d1840085fd5b5c044f6fd4a9e7b898f5498d4ec22b94b94d42eed3982060aea614347d73ee97e57de200d17d8100aee99c569fb8fc1d3e9c9a5fc7911
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<modelVersion>4.0.0</modelVersion>
|
4
4
|
<groupId>com.wix</groupId>
|
5
5
|
<artifactId>detox</artifactId>
|
6
|
-
<version>20.0.
|
6
|
+
<version>20.0.4-breaking.new-global-lifecycle.0</version>
|
7
7
|
<packaging>aar</packaging>
|
8
8
|
<name>Detox</name>
|
9
9
|
<description>Gray box end-to-end testing and automation library for mobile apps</description>
|
@@ -0,0 +1 @@
|
|
1
|
+
7a767580cccb826b804646d27377aed1
|
@@ -0,0 +1 @@
|
|
1
|
+
157c429db5c60554c8098801c65193871427d41d
|
@@ -0,0 +1 @@
|
|
1
|
+
e5c436ef487d630e7685b412f6160f33be799f64b99b928cdfbaa2c41aa0561e
|
@@ -0,0 +1 @@
|
|
1
|
+
6894a1d7a895abc41593948227786e0a41428bcaee4f4246cb9b8b3d40dc50f6b1404d622a07adbd992397ff7687ba97f8020528666ee77cf66db9377eb4b206
|
@@ -3,11 +3,11 @@
|
|
3
3
|
<groupId>com.wix</groupId>
|
4
4
|
<artifactId>detox</artifactId>
|
5
5
|
<versioning>
|
6
|
-
<latest>20.0.
|
7
|
-
<release>20.0.
|
6
|
+
<latest>20.0.4-breaking.new-global-lifecycle.0</latest>
|
7
|
+
<release>20.0.4-breaking.new-global-lifecycle.0</release>
|
8
8
|
<versions>
|
9
|
-
<version>20.0.
|
9
|
+
<version>20.0.4-breaking.new-global-lifecycle.0</version>
|
10
10
|
</versions>
|
11
|
-
<lastUpdated>
|
11
|
+
<lastUpdated>20220815150714</lastUpdated>
|
12
12
|
</versioning>
|
13
13
|
</metadata>
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
9d4e72b06ca1b5fefd299e136c22ade7
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
2b6e30446d53ced376695d11cd1eb93b03c03741
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
666b18918d13dcf788c142e10b4b14d4e3715836d3e3bcf637b07b6fe3ccf45d
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
2e8d99941b4da68f7a3740b3b4f3361e1d8c47f3abd49ba841d5523d722bdd13ebbfb09ecfc987f24d6add13b50fc318e3c172e67afda2c467fb24f337e7c62b
|
package/Detox-ios-src.tbz
CHANGED
Binary file
|
package/Detox-ios.tbz
CHANGED
Binary file
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "detox",
|
3
3
|
"description": "E2E tests and automation for mobile",
|
4
|
-
"version": "20.0.
|
4
|
+
"version": "20.0.4-breaking.new-global-lifecycle.0",
|
5
5
|
"bin": {
|
6
6
|
"detox": "local-cli/cli.js"
|
7
7
|
},
|
@@ -183,5 +183,5 @@
|
|
183
183
|
}
|
184
184
|
}
|
185
185
|
},
|
186
|
-
"gitHead": "
|
186
|
+
"gitHead": "5a4d2fa00b359b139d9bda7f5128b9d75cfa838b"
|
187
187
|
}
|
@@ -124,7 +124,7 @@ class DetoxPrimaryContext extends DetoxContext {
|
|
124
124
|
* @override
|
125
125
|
* @param {Partial<DetoxInternals.DetoxConfigurationSetupOptions>} [opts]
|
126
126
|
*/
|
127
|
-
async [symbols.setup](opts) {
|
127
|
+
async [symbols.setup](opts = {}) {
|
128
128
|
const workerId = opts.workerId || 1;
|
129
129
|
this[$sessionState].workerId = workerId;
|
130
130
|
this[_ipcServer].onRegisterWorker({ workerId });
|
@@ -8,16 +8,22 @@ const DetoxContext = require('./DetoxContext');
|
|
8
8
|
|
9
9
|
const { $logger, $restoreSessionState, $sessionState } = DetoxContext.protected;
|
10
10
|
const _ipcClient = Symbol('ipcClient');
|
11
|
+
const _shortLifecycle = Symbol('shortLifecycle');
|
11
12
|
|
12
13
|
class DetoxSecondaryContext extends DetoxContext {
|
13
14
|
constructor() {
|
14
15
|
super();
|
15
16
|
|
16
17
|
/**
|
17
|
-
* @
|
18
|
-
* @type {
|
18
|
+
* @private
|
19
|
+
* @type {import('../ipc/IPCClient')}
|
19
20
|
*/
|
20
21
|
this[_ipcClient] = null;
|
22
|
+
/**
|
23
|
+
* @private
|
24
|
+
* @type {undefined | boolean}
|
25
|
+
*/
|
26
|
+
this[_shortLifecycle] = false;
|
21
27
|
}
|
22
28
|
|
23
29
|
//#region Internal members
|
@@ -34,23 +40,7 @@ class DetoxSecondaryContext extends DetoxContext {
|
|
34
40
|
}
|
35
41
|
|
36
42
|
/** @override */
|
37
|
-
async [symbols.globalSetup](
|
38
|
-
// This is a no-op function.
|
39
|
-
// It is forbidden to add any logic to `globalSetup` of the secondary context.
|
40
|
-
// Violating this principle will almost definitely break some flows, where it is
|
41
|
-
// not guaranteed that `globalSetup` will ever get called. See UML diagrams.
|
42
|
-
}
|
43
|
-
|
44
|
-
/** @override */
|
45
|
-
async [symbols.globalTeardown]() {
|
46
|
-
// This is a no-op function.
|
47
|
-
// It is forbidden to add any logic to `globalTeardown` of the secondary context.
|
48
|
-
// Violating this principle will almost definitely break some flows, where it is
|
49
|
-
// not guaranteed that `globalTeardown` will ever get called. See UML diagrams.
|
50
|
-
}
|
51
|
-
|
52
|
-
/** @override */
|
53
|
-
async [symbols.setup](opts) {
|
43
|
+
async [symbols.globalSetup]() {
|
54
44
|
const IPCClient = require('../ipc/IPCClient');
|
55
45
|
|
56
46
|
this[_ipcClient] = new IPCClient({
|
@@ -59,8 +49,25 @@ class DetoxSecondaryContext extends DetoxContext {
|
|
59
49
|
logger: this[$logger],
|
60
50
|
});
|
61
51
|
|
62
|
-
const workerId = opts.workerId || 1;
|
63
52
|
await this[_ipcClient].init();
|
53
|
+
}
|
54
|
+
|
55
|
+
/** @override */
|
56
|
+
async [symbols.globalTeardown]() {
|
57
|
+
if (this[_ipcClient]) {
|
58
|
+
await this[_ipcClient].dispose();
|
59
|
+
this[_ipcClient] = null;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
/** @override */
|
64
|
+
async [symbols.setup](opts = {}) {
|
65
|
+
if (!this[_ipcClient]) {
|
66
|
+
this[_shortLifecycle] = true;
|
67
|
+
await this[symbols.globalSetup]();
|
68
|
+
}
|
69
|
+
|
70
|
+
const workerId = opts.workerId || 1;
|
64
71
|
await this[_ipcClient].registerWorker(workerId);
|
65
72
|
await super[symbols.setup](opts);
|
66
73
|
}
|
@@ -70,9 +77,8 @@ class DetoxSecondaryContext extends DetoxContext {
|
|
70
77
|
try {
|
71
78
|
await super[symbols.teardown]();
|
72
79
|
} finally {
|
73
|
-
if (this[
|
74
|
-
await this[
|
75
|
-
this[_ipcClient] = null;
|
80
|
+
if (this[_shortLifecycle]) {
|
81
|
+
await this[symbols.globalTeardown]();
|
76
82
|
}
|
77
83
|
}
|
78
84
|
}
|
@@ -1 +0,0 @@
|
|
1
|
-
c6493b7e10e165c7c6e7f0b4cf9d100c
|
@@ -1 +0,0 @@
|
|
1
|
-
6afd03fe5e86a8a04e4caf452772e710d2943deb
|
@@ -1 +0,0 @@
|
|
1
|
-
1fd68b232ab5d4668575c8d666cacb5c8ab02e50f7aed50d8d53d36d2c669eee
|
@@ -1 +0,0 @@
|
|
1
|
-
3b59f3522d88982355734b5a6d74add724fdd37b569bfc4fb07a8a1f954aab82e054bb5348833b9c156479af8440af6aabb4c2f0f684ff10afe7ca330d2a17a1
|
@@ -1 +0,0 @@
|
|
1
|
-
692bae402dc4d4f29b815943905eb9e7
|
@@ -1 +0,0 @@
|
|
1
|
-
130eba535610edf748a958abcddf5b2551b371a6
|
@@ -1 +0,0 @@
|
|
1
|
-
3ab48363cf0d353f3013e0a1157a8f1781e3ef91f86929c321c885aba8f0af52
|
@@ -1 +0,0 @@
|
|
1
|
-
b5034dce6f23e5356cc635d35c511314c074f1a4b01ae5cf15663f00d9b27711add721b3a9e9b318bacae16209e8474ccf3fd29533f4e591353169da7ad6c2c5
|
@@ -1 +0,0 @@
|
|
1
|
-
1576eed74ead432e6108c03493a6873c
|
@@ -1 +0,0 @@
|
|
1
|
-
092446317977f5dc4261d559e9608932254f5e3b
|
@@ -1 +0,0 @@
|
|
1
|
-
f05c7aab6a3e42433c2934f4b7617441cce2d9c1879319cd5999b765cce8d968
|
@@ -1 +0,0 @@
|
|
1
|
-
1c0756ed5dd13915de4625248beffb25c78fdf56635b54b65df36c61116ae860a66bc421e14641630d165b1cc630f51a225221dbd8789214d108bc531eb51ef7
|