detox 20.0.12-prerelease.0 → 20.0.14-next-is-hittable-check-2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. package/Detox-android/com/wix/detox/{20.0.12-prerelease.0/detox-20.0.12-prerelease.0-javadoc.jar → 20.0.14-next-is-hittable-check-2.0/detox-20.0.14-next-is-hittable-check-2.0-javadoc.jar} +0 -0
  2. package/Detox-android/com/wix/detox/20.0.14-next-is-hittable-check-2.0/detox-20.0.14-next-is-hittable-check-2.0-javadoc.jar.md5 +1 -0
  3. package/Detox-android/com/wix/detox/20.0.14-next-is-hittable-check-2.0/detox-20.0.14-next-is-hittable-check-2.0-javadoc.jar.sha1 +1 -0
  4. package/Detox-android/com/wix/detox/20.0.14-next-is-hittable-check-2.0/detox-20.0.14-next-is-hittable-check-2.0-javadoc.jar.sha256 +1 -0
  5. package/Detox-android/com/wix/detox/20.0.14-next-is-hittable-check-2.0/detox-20.0.14-next-is-hittable-check-2.0-javadoc.jar.sha512 +1 -0
  6. package/Detox-android/com/wix/detox/{20.0.12-prerelease.0/detox-20.0.12-prerelease.0-sources.jar → 20.0.14-next-is-hittable-check-2.0/detox-20.0.14-next-is-hittable-check-2.0-sources.jar} +0 -0
  7. package/Detox-android/com/wix/detox/20.0.14-next-is-hittable-check-2.0/detox-20.0.14-next-is-hittable-check-2.0-sources.jar.md5 +1 -0
  8. package/Detox-android/com/wix/detox/20.0.14-next-is-hittable-check-2.0/detox-20.0.14-next-is-hittable-check-2.0-sources.jar.sha1 +1 -0
  9. package/Detox-android/com/wix/detox/20.0.14-next-is-hittable-check-2.0/detox-20.0.14-next-is-hittable-check-2.0-sources.jar.sha256 +1 -0
  10. package/Detox-android/com/wix/detox/20.0.14-next-is-hittable-check-2.0/detox-20.0.14-next-is-hittable-check-2.0-sources.jar.sha512 +1 -0
  11. package/Detox-android/com/wix/detox/{20.0.12-prerelease.0/detox-20.0.12-prerelease.0.aar → 20.0.14-next-is-hittable-check-2.0/detox-20.0.14-next-is-hittable-check-2.0.aar} +0 -0
  12. package/Detox-android/com/wix/detox/{20.0.12-prerelease.0/detox-20.0.12-prerelease.0.aar.md5 → 20.0.14-next-is-hittable-check-2.0/detox-20.0.14-next-is-hittable-check-2.0.aar.md5} +0 -0
  13. package/Detox-android/com/wix/detox/{20.0.12-prerelease.0/detox-20.0.12-prerelease.0.aar.sha1 → 20.0.14-next-is-hittable-check-2.0/detox-20.0.14-next-is-hittable-check-2.0.aar.sha1} +0 -0
  14. package/Detox-android/com/wix/detox/{20.0.12-prerelease.0/detox-20.0.12-prerelease.0.aar.sha256 → 20.0.14-next-is-hittable-check-2.0/detox-20.0.14-next-is-hittable-check-2.0.aar.sha256} +0 -0
  15. package/Detox-android/com/wix/detox/{20.0.12-prerelease.0/detox-20.0.12-prerelease.0.aar.sha512 → 20.0.14-next-is-hittable-check-2.0/detox-20.0.14-next-is-hittable-check-2.0.aar.sha512} +0 -0
  16. package/Detox-android/com/wix/detox/{20.0.12-prerelease.0/detox-20.0.12-prerelease.0.pom → 20.0.14-next-is-hittable-check-2.0/detox-20.0.14-next-is-hittable-check-2.0.pom} +1 -1
  17. package/Detox-android/com/wix/detox/20.0.14-next-is-hittable-check-2.0/detox-20.0.14-next-is-hittable-check-2.0.pom.md5 +1 -0
  18. package/Detox-android/com/wix/detox/20.0.14-next-is-hittable-check-2.0/detox-20.0.14-next-is-hittable-check-2.0.pom.sha1 +1 -0
  19. package/Detox-android/com/wix/detox/20.0.14-next-is-hittable-check-2.0/detox-20.0.14-next-is-hittable-check-2.0.pom.sha256 +1 -0
  20. package/Detox-android/com/wix/detox/20.0.14-next-is-hittable-check-2.0/detox-20.0.14-next-is-hittable-check-2.0.pom.sha512 +1 -0
  21. package/Detox-android/com/wix/detox/maven-metadata.xml +4 -4
  22. package/Detox-android/com/wix/detox/maven-metadata.xml.md5 +1 -1
  23. package/Detox-android/com/wix/detox/maven-metadata.xml.sha1 +1 -1
  24. package/Detox-android/com/wix/detox/maven-metadata.xml.sha256 +1 -1
  25. package/Detox-android/com/wix/detox/maven-metadata.xml.sha512 +1 -1
  26. package/Detox-ios-src.tbz +0 -0
  27. package/Detox-ios.tbz +0 -0
  28. package/android/build.gradle +0 -1
  29. package/android/detox/proguard-rules-app.pro +4 -2
  30. package/index.d.ts +102 -15
  31. package/internals.d.ts +77 -17
  32. package/local-cli/test.js +4 -4
  33. package/local-cli/test.test.js +28 -24
  34. package/local-cli/testCommand/TestRunnerCommand.js +35 -27
  35. package/local-cli/utils/jestInternals.js +4 -1
  36. package/package.json +7 -7
  37. package/runners/jest/reporters/DetoxReporter.js +1 -1
  38. package/src/DetoxWorker.js +11 -9
  39. package/src/artifacts/ArtifactsManager.js +0 -18
  40. package/src/configuration/composeLoggerConfig.js +2 -2
  41. package/src/configuration/composeRunnerConfig.js +4 -3
  42. package/src/ipc/SessionState.js +1 -1
  43. package/src/logger/DetoxLogger.js +4 -6
  44. package/src/realms/DetoxContext.js +2 -6
  45. package/src/realms/DetoxInternalsFacade.js +0 -6
  46. package/src/realms/DetoxPrimaryContext.js +7 -2
  47. package/src/realms/DetoxSecondaryContext.js +6 -2
  48. package/src/symbols.js +0 -12
  49. package/Detox-android/com/wix/detox/20.0.12-prerelease.0/detox-20.0.12-prerelease.0-javadoc.jar.md5 +0 -1
  50. package/Detox-android/com/wix/detox/20.0.12-prerelease.0/detox-20.0.12-prerelease.0-javadoc.jar.sha1 +0 -1
  51. package/Detox-android/com/wix/detox/20.0.12-prerelease.0/detox-20.0.12-prerelease.0-javadoc.jar.sha256 +0 -1
  52. package/Detox-android/com/wix/detox/20.0.12-prerelease.0/detox-20.0.12-prerelease.0-javadoc.jar.sha512 +0 -1
  53. package/Detox-android/com/wix/detox/20.0.12-prerelease.0/detox-20.0.12-prerelease.0-sources.jar.md5 +0 -1
  54. package/Detox-android/com/wix/detox/20.0.12-prerelease.0/detox-20.0.12-prerelease.0-sources.jar.sha1 +0 -1
  55. package/Detox-android/com/wix/detox/20.0.12-prerelease.0/detox-20.0.12-prerelease.0-sources.jar.sha256 +0 -1
  56. package/Detox-android/com/wix/detox/20.0.12-prerelease.0/detox-20.0.12-prerelease.0-sources.jar.sha512 +0 -1
  57. package/Detox-android/com/wix/detox/20.0.12-prerelease.0/detox-20.0.12-prerelease.0.pom.md5 +0 -1
  58. package/Detox-android/com/wix/detox/20.0.12-prerelease.0/detox-20.0.12-prerelease.0.pom.sha1 +0 -1
  59. package/Detox-android/com/wix/detox/20.0.12-prerelease.0/detox-20.0.12-prerelease.0.pom.sha256 +0 -1
  60. package/Detox-android/com/wix/detox/20.0.12-prerelease.0/detox-20.0.12-prerelease.0.pom.sha512 +0 -1
@@ -0,0 +1 @@
1
+ 6bfd20ec1ae900abd578d862751e5ac04ef373cbe27201e7dbb078779340eaa5
@@ -0,0 +1 @@
1
+ f969f49c3ed45ff55bc020e06ed2ce25ec442379d558f6c9a7a1f0345a472a4245cfaad8ceba876e6459920c8fb691eddc7906baf4231ef7838bc49c3822f2cd
@@ -0,0 +1 @@
1
+ 6d018ab8b1a477b086e9cb9daabb86b406a84b908acb5b51aa19e07cf178c4f7
@@ -0,0 +1 @@
1
+ fb025c2b71f43d76d274e2a9c62654f6b3497cdf8ddf4b92318a35508e3383c87a0ed0b9f5e461c7e1a6779962d3a012f23baa9a9f2116525f6c32d8c163882c
@@ -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.12-prerelease.0</version>
6
+ <version>20.0.14-next-is-hittable-check-2.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
+ ba3edd4b7874e8e296a34bc55fa4aa1d49a40eb36ce442de000e62e9876e3b2d
@@ -0,0 +1 @@
1
+ 05ee92a5fcff9f5b53bc52ba1d5e3915369d0b34df12f94690f8b87f30ec705d2ba00d52bc79293cbcfecfbdc6773167b544b4973d82fbb4d6ecaed4ee3ae2a5
@@ -3,11 +3,11 @@
3
3
  <groupId>com.wix</groupId>
4
4
  <artifactId>detox</artifactId>
5
5
  <versioning>
6
- <latest>20.0.12-prerelease.0</latest>
7
- <release>20.0.12-prerelease.0</release>
6
+ <latest>20.0.14-next-is-hittable-check-2.0</latest>
7
+ <release>20.0.14-next-is-hittable-check-2.0</release>
8
8
  <versions>
9
- <version>20.0.12-prerelease.0</version>
9
+ <version>20.0.14-next-is-hittable-check-2.0</version>
10
10
  </versions>
11
- <lastUpdated>20221011170939</lastUpdated>
11
+ <lastUpdated>20221102074725</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- 79cf31a8db7ad74ff1286cd11496ad71
1
+ a1b9fb9ca9d07b3262312c77cbff61fb
@@ -1 +1 @@
1
- 0d7ee0e81eefa10376669b9858bd76020fde79ca
1
+ e8e44759632af3d4984893f4a28563aea9527f22
@@ -1 +1 @@
1
- d36ef71b4b4869d33efcc8332d5a8ba0e78539d934e0bf9879af9ff9a47a8f29
1
+ ae7d117aa6790de1a9487a514d0cf8244edb3885b266cc06030c77f14feb86ff
@@ -1 +1 @@
1
- 91d5852150f7da4be8a3758d64a7eb28bede7863ac6d34e56b81b1587b837c935a4e5af1e5476c0beb90ada1a154efc3028ae6e4f7878699d2942aba64293579
1
+ d256253b0492f63eda88eebb21a54e0ee3d73ab7420ff1db8e766ef09f49d8c854e4054358a0ad0d539380faa918ac0334405977c1e73126f00f6e939e4cb9da
package/Detox-ios-src.tbz CHANGED
Binary file
package/Detox-ios.tbz CHANGED
Binary file
@@ -37,7 +37,6 @@ allprojects {
37
37
  mavenLocal()
38
38
  mavenCentral()
39
39
  google()
40
- jcenter()
41
40
  maven {
42
41
  url "$projectDir/../../node_modules/react-native/android"
43
42
  }
@@ -1,4 +1,5 @@
1
1
  -keepattributes InnerClasses, Exceptions
2
+
2
3
  -keep class com.facebook.react.modules.** { *; }
3
4
  -keep class com.facebook.react.uimanager.** { *; }
4
5
  -keep class com.facebook.react.animated.** { *; }
@@ -8,8 +9,9 @@
8
9
  -keep class com.facebook.react.ReactInstanceManager** { *; }
9
10
  -keep class com.facebook.react.ReactInstanceEventListener { *; }
10
11
 
11
- -keep class com.facebook.react.views.slider.ReactSlider { *; }
12
- -keep class com.reactnativecommunity.slider.ReactSlider { *; }
12
+ -keep class com.facebook.react.views.slider.** { *; }
13
+ -keep class com.google.android.material.slider.** { *; }
14
+ -keep class com.reactnativecommunity.slider.** { *; }
13
15
  -keep class com.reactnativecommunity.asyncstorage.** { *; }
14
16
 
15
17
  -keep class kotlin.jvm.** { *; }
package/index.d.ts CHANGED
@@ -32,7 +32,7 @@ declare global {
32
32
  }
33
33
 
34
34
  namespace Detox {
35
- // region DetoxConfig
35
+ //#region DetoxConfig
36
36
 
37
37
  interface DetoxConfig extends DetoxConfigurationCommon {
38
38
  /**
@@ -88,9 +88,13 @@ declare global {
88
88
  */
89
89
  reinstallApp?: boolean;
90
90
  /**
91
- * If you wish to run multiple "detox test" commands in parallel,
92
- * make sure they don't delete the shared lock file only the
93
- * first command should reset the lock file.
91
+ * When false, `detox test` command always deletes the shared lock file on start,
92
+ * assuming it had been left from the previous, already finished test session.
93
+ * The lock file contains information about busy and free devices and ensures
94
+ * no device can be used simultaneously by multiple test workers.
95
+ *
96
+ * Setting it to **true** might be useful when if you need to run multiple
97
+ * `detox test` commands in parallel, e.g. test a few configurations at once.
94
98
  *
95
99
  * @default false
96
100
  */
@@ -102,13 +106,43 @@ declare global {
102
106
  };
103
107
  }
104
108
 
109
+ type _DetoxLoggerOptions = Omit<BunyanDebugStreamOptions, 'out'>;
110
+
105
111
  interface DetoxLoggerConfig {
112
+ /**
113
+ * Log level filters the messages printed to your terminal,
114
+ * and it does not affect the logs written to the artifacts.
115
+ *
116
+ * Use `info` by default.
117
+ * Use `error` or warn when you want to make the output as silent as possible.
118
+ * Use `debug` to control what generally is happening under the hood.
119
+ * Use `trace` when troubleshooting specific issues.
120
+ *
121
+ * @default 'info'
122
+ */
106
123
  level?: DetoxLogLevel;
107
124
  /**
108
- * @default 'sandbox'
125
+ * When enabled, hijacks all the console methods (console.log, console.warn, etc)
126
+ * so that the messages printed via them are formatted and saved as Detox logs.
127
+ *
128
+ * @default true
109
129
  */
110
- overrideConsole?: 'all' | 'sandbox' | 'none';
111
- options?: BunyanDebugStreamOptions | ((config: Partial<DetoxLoggerConfig>) => BunyanDebugStreamOptions);
130
+ overrideConsole?: boolean;
131
+ /**
132
+ * Since Detox is using
133
+ * {@link https://www.npmjs.com/package/bunyan-debug-stream bunyan-debug-stream}
134
+ * for printing logs, all its options are exposed for sake of simplicity
135
+ * of customization.
136
+ *
137
+ * The only exception is {@link BunyanDebugStreamOptions#out} option,
138
+ * which is always set to `process.stdout`.
139
+ *
140
+ * You can also pass a callback function to override the logger config
141
+ * programmatically, e.g. depending on the selected log level.
142
+ *
143
+ * @see {@link BunyanDebugStreamOptions}
144
+ */
145
+ options?: _DetoxLoggerOptions | ((config: Partial<DetoxLoggerConfig>) => _DetoxLoggerOptions);
112
146
  }
113
147
 
114
148
  interface DetoxSessionConfig {
@@ -133,25 +167,78 @@ declare global {
133
167
  */
134
168
  [prop: string]: unknown;
135
169
  };
170
+
136
171
  /**
137
- * Configuration of custom integration features
138
- * between Detox and Jest
172
+ * This is an add-on section used by our Jest integration code (but not Detox core itself).
173
+ * In other words, if you’re implementing (or using) a custom integration with some other test runner, feel free to define a section for yourself (e.g. `testRunner.mocha`)
139
174
  */
140
175
  jest?: {
141
176
  /**
142
177
  * Environment setup timeout
178
+ *
179
+ * As a part of the environment setup, Detox boots the device and installs the apps.
180
+ * If that takes longer than the specified value, the entire test suite will be considered as failed, e.g.:
181
+ * ```plain text
182
+ * FAIL e2e/starter.test.js
183
+ * ● Test suite failed to run
184
+ *
185
+ * Exceeded timeout of 300000ms while setting up Detox environment
186
+ * ```
187
+ *
188
+ * The default value is 5 minutes.
189
+ *
190
+ * @default 300000
191
+ * @see {@link https://jestjs.io/docs/configuration/#testenvironment-string}
143
192
  */
144
193
  setupTimeout?: number | undefined;
145
194
  /**
146
- * Environment teardown timeout
195
+ * Environemnt teardown timeout
196
+ *
197
+ * If the environment teardown takes longer than the specified value, Detox will throw a timeout error.
198
+ * The default value is half a minute.
199
+ *
200
+ * @default 30000 (30 seconds)
201
+ * @see {@link https://jestjs.io/docs/configuration/#testenvironment-string}
147
202
  */
148
203
  teardownTimeout?: number | undefined;
149
204
  /**
150
- * Insist on CLI-based retry mechanism even when the failed tests have been handled
151
- * by jest.retryTimes(n) mechanism from Jest Circus.
205
+ * Jest provides an API to re-run individual failed tests: `jest.retryTimes(count)`.
206
+ * When Detox detects the use of this API, it suppresses its own CLI retry mechanism controlled via `detox test … --retries <N>` or {@link DetoxTestRunnerConfig#retries}.
207
+ * The motivation is simple – activating the both mechanisms is apt to increase your test duration dramatically, if your tests are flaky.
208
+ * If you wish nevertheless to use both the mechanisms simultaneously, set it to `true`.
209
+ *
210
+ * @default false
211
+ * @see {@link https://jestjs.io/docs/29.0/jest-object#jestretrytimesnumretries-options}
152
212
  */
153
213
  retryAfterCircusRetries?: boolean;
214
+ /**
215
+ * By default, Jest prints the test names and their status (_passed_ or _failed_) at the very end of the test session.
216
+ * When enabled, it makes Detox to print messages like these each time the new test starts and ends:
217
+ * ```plain text
218
+ * 18:03:36.258 detox[40125] i Sanity: should have welcome screen
219
+ * 18:03:37.495 detox[40125] i Sanity: should have welcome screen [OK]
220
+ * 18:03:37.496 detox[40125] i Sanity: should show hello screen after tap
221
+ * 18:03:38.928 detox[40125] i Sanity: should show hello screen after tap [OK]
222
+ * 18:03:38.929 detox[40125] i Sanity: should show world screen after tap
223
+ * 18:03:40.351 detox[40125] i Sanity: should show world screen after tap [OK]
224
+ * ```
225
+ * By default, it is enabled automatically in test sessions with a single worker.
226
+ * And vice versa, if multiple tests are executed concurrently, Detox turns it off to avoid confusion in the log.
227
+ * Use boolean values, `true` or `false`, to turn off the automatic choice.
228
+ *
229
+ * @default undefined
230
+ */
154
231
  reportSpecs?: boolean | undefined;
232
+ /**
233
+ * In the environment setup phase, Detox boots the device and installs the apps.
234
+ * This flag tells Detox to print messages like these every time the device gets assigned to a specific suite:
235
+ *
236
+ * ```plain text
237
+ * 18:03:29.869 detox[40125] i starter.test.js is assigned to 4EC84833-C7EA-4CA3-A6E9-5C30A29EA596 (iPhone 12 Pro Max)
238
+ * ```
239
+ *
240
+ * @default true
241
+ */
155
242
  reportWorkerAssign?: boolean | undefined;
156
243
  };
157
244
  /**
@@ -170,9 +257,9 @@ declare global {
170
257
  bail?: boolean;
171
258
  /**
172
259
  * Custom handler to process --inspect-brk CLI flag.
173
- * Use it when you rely on another test runner than Jest.
260
+ * Use it when you rely on another test runner than Jest to mutate the config.
174
261
  */
175
- inspectBrk?: boolean | ((config: DetoxTestRunnerConfig) => void);
262
+ inspectBrk?: (config: DetoxTestRunnerConfig) => void;
176
263
  /**
177
264
  * Forward environment variables to the spawned test runner
178
265
  * accordingly to the given CLI argument overrides.
@@ -342,7 +429,7 @@ declare global {
342
429
 
343
430
  type DetoxAliasedApp = string | DetoxAppConfig;
344
431
 
345
- // endregion DetoxConfig
432
+ //#endregion
346
433
 
347
434
  interface DetoxExportWrapper {
348
435
  readonly device: Device;
package/internals.d.ts CHANGED
@@ -6,7 +6,7 @@ declare global {
6
6
  type DetoxStatus = 'inactive' | 'init' | 'active' | 'cleanup';
7
7
 
8
8
  type Facade = {
9
- // region Initialization
9
+ //#region Initialization
10
10
  /**
11
11
  * Use with a caution, when you still have no config, yet need to avoid {@link Facade#init}
12
12
  */
@@ -37,21 +37,74 @@ declare global {
37
37
  * This is the phase where the Detox server shuts down.
38
38
  */
39
39
  cleanup(): Promise<void>;
40
- // endregion
41
-
42
- // region Lifecycle
43
- onRunStart(event: unknown): Promise<void>;
44
- onRunDescribeStart(event: unknown): Promise<void>;
45
- onTestStart(event: unknown): Promise<void>;
46
- onHookStart(event: unknown): Promise<void>;
47
- onHookFailure(event: unknown): Promise<void>;
48
- onHookSuccess(event: unknown): Promise<void>;
49
- onTestFnStart(event: unknown): Promise<void>;
50
- onTestFnFailure(event: unknown): Promise<void>;
51
- onTestFnSuccess(event: unknown): Promise<void>;
52
- onTestDone(event: unknown): Promise<void>;
53
- onRunDescribeFinish(event: unknown): Promise<void>;
54
- onRunFinish(event: unknown): Promise<void>;
40
+ //#endregion
41
+
42
+ //#region Lifecycle
43
+ /**
44
+ * Reports that the test runner started executing a test suite, e.g. a `beforeAll` hook or a first test.
45
+ */
46
+ onRunDescribeStart(event: {
47
+ /** Test suite name */
48
+ name: string;
49
+ }): Promise<void>;
50
+ /**
51
+ * Reports that the test runner started executing a specific test.
52
+ */
53
+ onTestStart(event: {
54
+ /** Test name */
55
+ title: string;
56
+ /** Test name including the ancestor suite titles */
57
+ fullName: string;
58
+ /**
59
+ * N-th time this test is running, if there is a retry mechanism.
60
+ *
61
+ * @default 1
62
+ */
63
+ invocations?: number;
64
+ status: 'running';
65
+ }): Promise<void>;
66
+ /**
67
+ * Reports about an error in the midst of `beforeAll`, `beforeEach`, `afterEach`, `afterAll` or any other hook.
68
+ */
69
+ onHookFailure(event: {
70
+ error: Error | string;
71
+ /**
72
+ * @example 'beforeAll'
73
+ * @example 'afterEach'
74
+ */
75
+ hook: string;
76
+ }): Promise<void>;
77
+ /**
78
+ * Reports about an error in the midst of a test function, `test` or `it`.
79
+ */
80
+ onTestFnFailure(event: {
81
+ error: Error | string;
82
+ }): Promise<void>;
83
+ /**
84
+ * Reports the final status of the test, `passed` or `failed`.
85
+ */
86
+ onTestDone(event: {
87
+ /** Test name */
88
+ title: string;
89
+ /** Test name including the ancestor suite titles */
90
+ fullName: string;
91
+ /**
92
+ * N-th time this test is running, if there is a retry mechanism.
93
+ *
94
+ * @default 1
95
+ */
96
+ invocations?: number;
97
+ status: 'passed' | 'failed';
98
+ /** Whether a timeout was the reason for why the test failed. */
99
+ timedOut?: boolean;
100
+ }): Promise<void>;
101
+ /**
102
+ * Reports that the test runner has finished executing a test suite, e.g. all the `afterAll` hooks have been executed or the last test has finished running.
103
+ */
104
+ onRunDescribeFinish(event: {
105
+ /** Test suite name */
106
+ name: string;
107
+ }): Promise<void>;
55
108
 
56
109
  /**
57
110
  * Reports to Detox CLI about passed and failed test files.
@@ -61,7 +114,7 @@ declare global {
61
114
  * @param testResults - reports about test files
62
115
  */
63
116
  reportTestResults(testResults: DetoxTestFileReport[]): Promise<void>;
64
- // endregion
117
+ //#endregion
65
118
 
66
119
  readonly config: RuntimeConfig;
67
120
  readonly log: Detox.Logger;
@@ -78,6 +131,10 @@ declare global {
78
131
  createEventStream(): NodeJS.ReadableStream;
79
132
  };
80
133
 
134
+ /**
135
+ * Not documented on purpose.
136
+ * Provides direct access to the object which holds the device driver, websocket client, matchers, expectations, etc.
137
+ */
81
138
  readonly worker: Worker;
82
139
  }
83
140
 
@@ -87,6 +144,9 @@ declare global {
87
144
 
88
145
  type DetoxInitOptions = {
89
146
  cwd: string;
147
+ /**
148
+ * @internal
149
+ */
90
150
  argv: Record<string, unknown>;
91
151
  testRunnerArgv: Record<string, unknown>;
92
152
  override: Partial<Detox.DetoxConfig>;
package/local-cli/test.js CHANGED
@@ -16,14 +16,14 @@ module.exports.handler = async function test({ detoxArgs, runnerArgs }) {
16
16
  };
17
17
 
18
18
  const config = await detox.resolveConfig(opts);
19
- if (!config.testRunner.inspectBrk) {
19
+ if (!detoxArgs['inspect-brk']) {
20
20
  await detox.init(opts);
21
21
  }
22
22
 
23
23
  const runnerCommand = new TestRunnerCommand()
24
- .setDeviceConfig(detox.config.device)
25
- .replicateCLIConfig(detox.config.cli)
26
- .setRunnerConfig(detox.config.testRunner);
24
+ .setDeviceConfig(config.device)
25
+ .replicateCLIConfig(config.cli)
26
+ .setRunnerConfig(config.testRunner);
27
27
 
28
28
  await runnerCommand.execute();
29
29
  } finally {