detox 20.40.1 → 20.40.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/Detox-android/com/wix/detox/{20.40.1/detox-20.40.1-sources.jar → 20.40.2/detox-20.40.2-sources.jar} +0 -0
  2. package/Detox-android/com/wix/detox/20.40.2/detox-20.40.2-sources.jar.md5 +1 -0
  3. package/Detox-android/com/wix/detox/20.40.2/detox-20.40.2-sources.jar.sha1 +1 -0
  4. package/Detox-android/com/wix/detox/20.40.2/detox-20.40.2-sources.jar.sha256 +1 -0
  5. package/Detox-android/com/wix/detox/20.40.2/detox-20.40.2-sources.jar.sha512 +1 -0
  6. package/Detox-android/com/wix/detox/{20.40.1/detox-20.40.1.pom → 20.40.2/detox-20.40.2.pom} +1 -1
  7. package/Detox-android/com/wix/detox/20.40.2/detox-20.40.2.pom.md5 +1 -0
  8. package/Detox-android/com/wix/detox/20.40.2/detox-20.40.2.pom.sha1 +1 -0
  9. package/Detox-android/com/wix/detox/20.40.2/detox-20.40.2.pom.sha256 +1 -0
  10. package/Detox-android/com/wix/detox/20.40.2/detox-20.40.2.pom.sha512 +1 -0
  11. package/Detox-android/com/wix/detox/maven-metadata.xml +4 -4
  12. package/Detox-android/com/wix/detox/maven-metadata.xml.md5 +1 -1
  13. package/Detox-android/com/wix/detox/maven-metadata.xml.sha1 +1 -1
  14. package/Detox-android/com/wix/detox/maven-metadata.xml.sha256 +1 -1
  15. package/Detox-android/com/wix/detox/maven-metadata.xml.sha512 +1 -1
  16. package/Detox-ios-framework.tbz +0 -0
  17. package/Detox-ios-src.tbz +0 -0
  18. package/Detox-ios-xcuitest.tbz +0 -0
  19. package/detox.d.ts +7 -1
  20. package/package.json +4 -4
  21. package/runners/jest/testEnvironment/index.js +6 -0
  22. package/src/pilot/DetoxPilot.js +18 -2
  23. package/Detox-android/com/wix/detox/20.40.1/detox-20.40.1-sources.jar.md5 +0 -1
  24. package/Detox-android/com/wix/detox/20.40.1/detox-20.40.1-sources.jar.sha1 +0 -1
  25. package/Detox-android/com/wix/detox/20.40.1/detox-20.40.1-sources.jar.sha256 +0 -1
  26. package/Detox-android/com/wix/detox/20.40.1/detox-20.40.1-sources.jar.sha512 +0 -1
  27. package/Detox-android/com/wix/detox/20.40.1/detox-20.40.1.pom.md5 +0 -1
  28. package/Detox-android/com/wix/detox/20.40.1/detox-20.40.1.pom.sha1 +0 -1
  29. package/Detox-android/com/wix/detox/20.40.1/detox-20.40.1.pom.sha256 +0 -1
  30. package/Detox-android/com/wix/detox/20.40.1/detox-20.40.1.pom.sha512 +0 -1
  31. /package/Detox-android/com/wix/detox/{20.40.1/detox-20.40.1.aar → 20.40.2/detox-20.40.2.aar} +0 -0
  32. /package/Detox-android/com/wix/detox/{20.40.1/detox-20.40.1.aar.md5 → 20.40.2/detox-20.40.2.aar.md5} +0 -0
  33. /package/Detox-android/com/wix/detox/{20.40.1/detox-20.40.1.aar.sha1 → 20.40.2/detox-20.40.2.aar.sha1} +0 -0
  34. /package/Detox-android/com/wix/detox/{20.40.1/detox-20.40.1.aar.sha256 → 20.40.2/detox-20.40.2.aar.sha256} +0 -0
  35. /package/Detox-android/com/wix/detox/{20.40.1/detox-20.40.1.aar.sha512 → 20.40.2/detox-20.40.2.aar.sha512} +0 -0
@@ -0,0 +1 @@
1
+ cda086eff253bc511cfdbdbf813e3fc7
@@ -0,0 +1 @@
1
+ 3aa9496fcf17c82fb56bdb6837cd70d2599069d4
@@ -0,0 +1 @@
1
+ 1e4238e611bb9e23eb514288d44a3008ca2fe62e728f97d171415bd2b821fa59
@@ -0,0 +1 @@
1
+ 20e0596b7f36dc247d54453883b3222f5914a9d84984372a31a95c585549f25f2c06648758246b1d841f8071f9a9a6d6599d3df47197e51295e30731a7670037
@@ -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.40.1</version>
6
+ <version>20.40.2</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
+ e1d9ee64c2de9b98c9c111b3fa696b1b
@@ -0,0 +1 @@
1
+ 5115014d32913b8f02d21d5a95eceaf96cc395eb
@@ -0,0 +1 @@
1
+ 96c19d1412a02f323ae2249d5415b9222b2cb5e539f9efd4ec971e55fddf5305
@@ -0,0 +1 @@
1
+ 29e3a5bd9423e937788003192fcdb06392ad4acf036e01ddbcb117e8174f5c597b52ae84132b1ff3301b19933cbfb2efbdd83e944ff8690709faa215677cf98d
@@ -3,11 +3,11 @@
3
3
  <groupId>com.wix</groupId>
4
4
  <artifactId>detox</artifactId>
5
5
  <versioning>
6
- <latest>20.40.1</latest>
7
- <release>20.40.1</release>
6
+ <latest>20.40.2</latest>
7
+ <release>20.40.2</release>
8
8
  <versions>
9
- <version>20.40.1</version>
9
+ <version>20.40.2</version>
10
10
  </versions>
11
- <lastUpdated>20250709100011</lastUpdated>
11
+ <lastUpdated>20250714113314</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- fd2576346d5faf67f5f7676c76d84dcb
1
+ c8c68cc098d5ea979ebb5d232b745b3f
@@ -1 +1 @@
1
- 7df9036abd4ce3ccafc48e98084eed1544dfc2b2
1
+ 1a321c7835c033b9834bbac15e61ea6f78a36f49
@@ -1 +1 @@
1
- b94fc1a4fd83bb0567cbed695e049f611aa325fc43cd3a6adb2045c3e6921dff
1
+ 95bde0b1e44cb7bc643535740ce36af75fab80a8f136e537f7691b081c70f2b3
@@ -1 +1 @@
1
- cc22e3e9c9e7ae105d94b34cd696c7ee8d32e38c77d3317baef6c49600a98799baaba5970ea2a32fdc0d084b6c85f1f9a6799bb5cfab495da74ed6c7836f5335
1
+ 232c04d61df93be67214a9c807e65ef80ae2972dc489d88a925473cfd54d9504521b326479a1b5d58d8b5f406226d24f84b699764854d72910b02d95385ffd67
Binary file
package/Detox-ios-src.tbz CHANGED
Binary file
Binary file
package/detox.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // * Dor Ben Baruch <https://github.com/Dor256>
10
10
 
11
11
  import { BunyanDebugStreamOptions } from 'bunyan-debug-stream';
12
- import type { Pilot, PromptHandler as _PromptHandler } from '@wix-pilot/core'
12
+ import type { Config as PilotConfig, Pilot, PromptHandler as _PromptHandler } from '@wix-pilot/core'
13
13
 
14
14
  declare global {
15
15
  namespace Detox {
@@ -1361,6 +1361,12 @@ declare global {
1361
1361
  * @param promptHandler The prompt handler to use.
1362
1362
  */
1363
1363
  init: (promptHandler: PromptHandler) => void;
1364
+ /**
1365
+ * Sets the default values for the Pilot configuration.
1366
+ * This method is not part of the public API and is subject to change.
1367
+ * @internal
1368
+ */
1369
+ setDefaults(defaults: Partial<PilotConfig>): void;
1364
1370
  }
1365
1371
 
1366
1372
  type PromptHandler = _PromptHandler;
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.40.1",
4
+ "version": "20.40.2",
5
5
  "bin": {
6
6
  "detox": "local-cli/cli.js"
7
7
  },
@@ -68,8 +68,8 @@
68
68
  "wtfnode": "^0.9.1"
69
69
  },
70
70
  "dependencies": {
71
- "@wix-pilot/core": "^3.3.0",
72
- "@wix-pilot/detox": "^1.0.11",
71
+ "@wix-pilot/core": "^3.4.1",
72
+ "@wix-pilot/detox": "^1.0.13",
73
73
  "ajv": "^8.6.3",
74
74
  "bunyan": "^1.8.12",
75
75
  "bunyan-debug-stream": "^3.1.0",
@@ -120,5 +120,5 @@
120
120
  "browserslist": [
121
121
  "node 14"
122
122
  ],
123
- "gitHead": "1b27e222d29b5d0847c9c022c0d1590647af76ae"
123
+ "gitHead": "4e6798ec5682611cc6b1c420c2561e2981d82d91"
124
124
  }
@@ -125,6 +125,12 @@ class DetoxCircusEnvironment extends WithEmitter(NodeEnvironment) {
125
125
  await detox.installWorker(opts);
126
126
  }
127
127
 
128
+ detox.worker.pilot.setDefaults({
129
+ testContext: {
130
+ getCurrentTestFilePath: () => path.resolve(this.testPath),
131
+ },
132
+ });
133
+
128
134
  return detox.worker;
129
135
  }
130
136
 
@@ -5,10 +5,18 @@ const detox = require('../..');
5
5
 
6
6
  /** @type {Detox.PilotFacade} */
7
7
  class DetoxPilot {
8
+ /**
9
+ * @param {Partial<import('@wix-pilot/core').Config>} [defaults] Arbitrary config defaults for the Pilot.
10
+ */
11
+ constructor(defaults = {}) {
12
+ this._defaults = defaults;
13
+ }
14
+
8
15
  init(promptHandler) {
9
- this.pilot = new Pilot({
16
+ this.pilot = new Pilot({
17
+ ...this._defaults,
10
18
  frameworkDriver: new DetoxFrameworkDriver(detox),
11
- promptHandler: promptHandler
19
+ promptHandler: promptHandler,
12
20
  });
13
21
  }
14
22
 
@@ -44,6 +52,14 @@ class DetoxPilot {
44
52
  isInitialized(){
45
53
  return !!this.pilot;
46
54
  }
55
+
56
+ /**
57
+ * @param {Partial<import('@wix-pilot/core').Config>} [defaults] Arbitrary config defaults for the Pilot.
58
+ * @internal
59
+ */
60
+ setDefaults(defaults) {
61
+ Object.assign(this._defaults, defaults);
62
+ }
47
63
  }
48
64
 
49
65
  module.exports = DetoxPilot;
@@ -1 +0,0 @@
1
- 8c398d819033d15f727daf28426f1c50
@@ -1 +0,0 @@
1
- bab5b4c3930fc34187b928274acd540ea9a94116
@@ -1 +0,0 @@
1
- 5b774e0b06f1679a7c5dbccdefc931b69404f0ce8c965defed3e80858f4278b3
@@ -1 +0,0 @@
1
- a81e4fcabcafe3b7c0f88ecac3336a0ddd696e639a0f49af3fd71e2c5a63d5341755edac7fe1fc4a8cf4f5dc6416229e3e94f65b841c6162e550dd11fb49b931
@@ -1 +0,0 @@
1
- 8726ce2b4d2907246a6104c59433e173
@@ -1 +0,0 @@
1
- a81d61515430c4db7f04bb4cb41b9190848f4dc3
@@ -1 +0,0 @@
1
- f3a39951c296b6e27292c15b2162b019eda61a359bedbeb3a9227913ed68f608
@@ -1 +0,0 @@
1
- 392753f08a6a2c0c8b9df6a833108ab292558da7b3d7cc00d47cdeabf078665791f7a1564ee042ff09232152ac10b979cd38a08b863b309a98155904ae9565ce