detox 20.0.14-is-hittable-over-master.0 → 20.0.14-prerelease.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.14-is-hittable-over-master.0/detox-20.0.14-is-hittable-over-master.0-javadoc.jar → 20.0.14-prerelease.0/detox-20.0.14-prerelease.0-javadoc.jar} +0 -0
- package/Detox-android/com/wix/detox/20.0.14-prerelease.0/detox-20.0.14-prerelease.0-javadoc.jar.md5 +1 -0
- package/Detox-android/com/wix/detox/20.0.14-prerelease.0/detox-20.0.14-prerelease.0-javadoc.jar.sha1 +1 -0
- package/Detox-android/com/wix/detox/20.0.14-prerelease.0/detox-20.0.14-prerelease.0-javadoc.jar.sha256 +1 -0
- package/Detox-android/com/wix/detox/20.0.14-prerelease.0/detox-20.0.14-prerelease.0-javadoc.jar.sha512 +1 -0
- package/Detox-android/com/wix/detox/{20.0.14-is-hittable-over-master.0/detox-20.0.14-is-hittable-over-master.0-sources.jar → 20.0.14-prerelease.0/detox-20.0.14-prerelease.0-sources.jar} +0 -0
- package/Detox-android/com/wix/detox/20.0.14-prerelease.0/detox-20.0.14-prerelease.0-sources.jar.md5 +1 -0
- package/Detox-android/com/wix/detox/20.0.14-prerelease.0/detox-20.0.14-prerelease.0-sources.jar.sha1 +1 -0
- package/Detox-android/com/wix/detox/20.0.14-prerelease.0/detox-20.0.14-prerelease.0-sources.jar.sha256 +1 -0
- package/Detox-android/com/wix/detox/20.0.14-prerelease.0/detox-20.0.14-prerelease.0-sources.jar.sha512 +1 -0
- package/Detox-android/com/wix/detox/{20.0.14-is-hittable-over-master.0/detox-20.0.14-is-hittable-over-master.0.aar → 20.0.14-prerelease.0/detox-20.0.14-prerelease.0.aar} +0 -0
- package/Detox-android/com/wix/detox/{20.0.14-is-hittable-over-master.0/detox-20.0.14-is-hittable-over-master.0.aar.md5 → 20.0.14-prerelease.0/detox-20.0.14-prerelease.0.aar.md5} +0 -0
- package/Detox-android/com/wix/detox/{20.0.14-is-hittable-over-master.0/detox-20.0.14-is-hittable-over-master.0.aar.sha1 → 20.0.14-prerelease.0/detox-20.0.14-prerelease.0.aar.sha1} +0 -0
- package/Detox-android/com/wix/detox/{20.0.14-is-hittable-over-master.0/detox-20.0.14-is-hittable-over-master.0.aar.sha256 → 20.0.14-prerelease.0/detox-20.0.14-prerelease.0.aar.sha256} +0 -0
- package/Detox-android/com/wix/detox/{20.0.14-is-hittable-over-master.0/detox-20.0.14-is-hittable-over-master.0.aar.sha512 → 20.0.14-prerelease.0/detox-20.0.14-prerelease.0.aar.sha512} +0 -0
- package/Detox-android/com/wix/detox/{20.0.14-is-hittable-over-master.0/detox-20.0.14-is-hittable-over-master.0.pom → 20.0.14-prerelease.0/detox-20.0.14-prerelease.0.pom} +1 -1
- package/Detox-android/com/wix/detox/20.0.14-prerelease.0/detox-20.0.14-prerelease.0.pom.md5 +1 -0
- package/Detox-android/com/wix/detox/20.0.14-prerelease.0/detox-20.0.14-prerelease.0.pom.sha1 +1 -0
- package/Detox-android/com/wix/detox/20.0.14-prerelease.0/detox-20.0.14-prerelease.0.pom.sha256 +1 -0
- package/Detox-android/com/wix/detox/20.0.14-prerelease.0/detox-20.0.14-prerelease.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/android/build.gradle +0 -1
- package/android/detox/proguard-rules-app.pro +4 -2
- package/index.d.ts +105 -19
- package/internals.d.ts +103 -22
- package/local-cli/cli.js +1 -1
- package/local-cli/init.js +1 -1
- package/local-cli/test.js +6 -6
- package/local-cli/test.test.js +41 -41
- package/local-cli/testCommand/TestRunnerCommand.js +75 -78
- package/local-cli/testCommand/builder.js +0 -1
- package/local-cli/testCommand/middlewares.js +1 -11
- package/local-cli/testCommand/warnings.js +0 -3
- package/local-cli/utils/jestInternals.js +4 -1
- package/package.json +27 -13
- package/runners/deprecation.js +42 -44
- package/runners/jest/index.d.ts +60 -0
- package/runners/jest/index.js +3 -8
- package/runners/jest/reporters/DetoxReporter.js +21 -10
- package/runners/jest/testEnvironment/index.js +57 -41
- package/runners/jest/testEnvironment/listeners/DetoxCoreListener.js +7 -3
- package/runners/jest/testEnvironment/listeners/SpecReporter.js +12 -14
- package/runners/jest/testEnvironment/listeners/WorkerAssignReporter.js +1 -5
- package/runners/jest/testEnvironment/utils/assertJestCircus27.js +17 -3
- package/runners/jest/testEnvironment/utils/assertJestCircus27.test.js +0 -1
- package/src/DetoxWorker.js +95 -55
- package/src/artifacts/ArtifactsManager.js +6 -24
- package/src/configuration/collectCliConfig.js +1 -12
- package/src/configuration/composeLoggerConfig.js +2 -2
- package/src/configuration/composeRunnerConfig.js +8 -6
- package/src/devices/common/drivers/ios/tools/AppleSimUtils.js +1 -1
- package/src/errors/DetoxConfigErrorComposer.js +6 -1
- package/src/ipc/SessionState.js +8 -6
- package/src/logger/DetoxLogger.js +5 -25
- package/src/logger/index.js +1 -0
- package/src/logger/utils/CategoryThreadDispatcher.js +7 -29
- package/src/logger/utils/DetoxLogFinalizer.js +134 -0
- package/src/logger/utils/ThreadDispatcher.js +5 -25
- package/src/logger/utils/customConsoleLogger.js +4 -3
- package/src/logger/utils/streamUtils.js +34 -26
- package/src/realms/DetoxContext.js +10 -13
- package/src/realms/DetoxInternalsFacade.js +0 -6
- package/src/realms/DetoxPrimaryContext.js +29 -84
- package/src/realms/DetoxSecondaryContext.js +6 -10
- package/src/symbols.js +0 -12
- package/src/utils/argparse.js +11 -0
- package/Detox-android/com/wix/detox/20.0.14-is-hittable-over-master.0/detox-20.0.14-is-hittable-over-master.0-javadoc.jar.md5 +0 -1
- package/Detox-android/com/wix/detox/20.0.14-is-hittable-over-master.0/detox-20.0.14-is-hittable-over-master.0-javadoc.jar.sha1 +0 -1
- package/Detox-android/com/wix/detox/20.0.14-is-hittable-over-master.0/detox-20.0.14-is-hittable-over-master.0-javadoc.jar.sha256 +0 -1
- package/Detox-android/com/wix/detox/20.0.14-is-hittable-over-master.0/detox-20.0.14-is-hittable-over-master.0-javadoc.jar.sha512 +0 -1
- package/Detox-android/com/wix/detox/20.0.14-is-hittable-over-master.0/detox-20.0.14-is-hittable-over-master.0-sources.jar.md5 +0 -1
- package/Detox-android/com/wix/detox/20.0.14-is-hittable-over-master.0/detox-20.0.14-is-hittable-over-master.0-sources.jar.sha1 +0 -1
- package/Detox-android/com/wix/detox/20.0.14-is-hittable-over-master.0/detox-20.0.14-is-hittable-over-master.0-sources.jar.sha256 +0 -1
- package/Detox-android/com/wix/detox/20.0.14-is-hittable-over-master.0/detox-20.0.14-is-hittable-over-master.0-sources.jar.sha512 +0 -1
- package/Detox-android/com/wix/detox/20.0.14-is-hittable-over-master.0/detox-20.0.14-is-hittable-over-master.0.pom.md5 +0 -1
- package/Detox-android/com/wix/detox/20.0.14-is-hittable-over-master.0/detox-20.0.14-is-hittable-over-master.0.pom.sha1 +0 -1
- package/Detox-android/com/wix/detox/20.0.14-is-hittable-over-master.0/detox-20.0.14-is-hittable-over-master.0.pom.sha256 +0 -1
- package/Detox-android/com/wix/detox/20.0.14-is-hittable-over-master.0/detox-20.0.14-is-hittable-over-master.0.pom.sha512 +0 -1
- package/runners/jest/deprecation.js +0 -25
- package/src/configuration/utils/warnings.js +0 -12
package/src/symbols.js
CHANGED
@@ -7,16 +7,10 @@
|
|
7
7
|
* readonly installWorker: unique symbol;
|
8
8
|
* readonly logger: unique symbol;
|
9
9
|
* readonly onHookFailure: unique symbol;
|
10
|
-
* readonly onHookStart: unique symbol;
|
11
|
-
* readonly onHookSuccess: unique symbol;
|
12
10
|
* readonly onRunDescribeFinish: unique symbol;
|
13
11
|
* readonly onRunDescribeStart: unique symbol;
|
14
|
-
* readonly onRunFinish: unique symbol;
|
15
|
-
* readonly onRunStart: unique symbol;
|
16
12
|
* readonly onTestDone: unique symbol;
|
17
13
|
* readonly onTestFnFailure: unique symbol;
|
18
|
-
* readonly onTestFnStart: unique symbol;
|
19
|
-
* readonly onTestFnSuccess: unique symbol;
|
20
14
|
* readonly onTestStart: unique symbol;
|
21
15
|
* readonly reportTestResults: unique symbol;
|
22
16
|
* readonly resolveConfig: unique symbol;
|
@@ -28,18 +22,12 @@
|
|
28
22
|
*/
|
29
23
|
module.exports = {
|
30
24
|
//#region Lifecycle
|
31
|
-
onRunStart: Symbol('run_start'),
|
32
25
|
onRunDescribeStart: Symbol('run_describe_start'),
|
33
26
|
onTestStart: Symbol('test_start'),
|
34
|
-
onHookStart: Symbol('hook_start'),
|
35
27
|
onHookFailure: Symbol('hook_failure'),
|
36
|
-
onHookSuccess: Symbol('hook_success'),
|
37
|
-
onTestFnStart: Symbol('test_fn_start'),
|
38
28
|
onTestFnFailure: Symbol('test_fn_failure'),
|
39
|
-
onTestFnSuccess: Symbol('test_fn_success'),
|
40
29
|
onTestDone: Symbol('test_done'),
|
41
30
|
onRunDescribeFinish: Symbol('run_describe_finish'),
|
42
|
-
onRunFinish: Symbol('run_finish'),
|
43
31
|
//#endregion
|
44
32
|
|
45
33
|
//#region IPC
|
package/src/utils/argparse.js
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
const path = require('path');
|
2
|
+
|
1
3
|
const _ = require('lodash');
|
2
4
|
const argv = require('minimist')(process.argv.slice(2));
|
3
5
|
|
@@ -81,9 +83,18 @@ function joinArgs(keyValues, options = DEFAULT_JOIN_ARGUMENTS_OPTIONS) {
|
|
81
83
|
return argArray.join(' ');
|
82
84
|
}
|
83
85
|
|
86
|
+
function getCurrentCommand() {
|
87
|
+
const cwd = process.cwd();
|
88
|
+
|
89
|
+
return process.argv.slice(1).map((value, index) => {
|
90
|
+
return index ? value : path.relative(cwd, value);
|
91
|
+
}).join(' ');
|
92
|
+
}
|
93
|
+
|
84
94
|
module.exports = {
|
85
95
|
getArgValue,
|
86
96
|
getEnvValue,
|
87
97
|
getFlag,
|
88
98
|
joinArgs,
|
99
|
+
getCurrentCommand,
|
89
100
|
};
|
@@ -1 +0,0 @@
|
|
1
|
-
c1ca4220e13310197929f74b9592831b
|
@@ -1 +0,0 @@
|
|
1
|
-
86a688315cade83d4ce5d05c54cf4b0e5ea64afc
|
@@ -1 +0,0 @@
|
|
1
|
-
ab49827e3d43f2731c516d5160686c04262254fc44ef45d7889b6249e39fe2be
|
@@ -1 +0,0 @@
|
|
1
|
-
b6ad4c5187dc36a8e9ccfa339c45fa091a45e719050a604ba3f18a8b6a71b369d17d3ee13c6d6f5de9db09475047567221a6c7fdd7095edacb9316ea295d020b
|
@@ -1 +0,0 @@
|
|
1
|
-
5443bd2a15cfc87be78a060f0f874a38
|
@@ -1 +0,0 @@
|
|
1
|
-
7c4b32daccb31d1f3ae317999e5585dab21ec89a
|
@@ -1 +0,0 @@
|
|
1
|
-
47b831ebfddd79ea8ba2ccc299aa3b9866d1120c70faf2a60b80c4581163237a
|
@@ -1 +0,0 @@
|
|
1
|
-
bd6d43891de0ceb75ba13baaa43e8bef9c26544df29defc7a6387766cd3edd8b456eab6ecc88d28d3ef30e4652e5726ba9c322e54097605cdd09bd192c235474
|
@@ -1 +0,0 @@
|
|
1
|
-
60100a8ecab6c7d49602bcdb24689c36
|
@@ -1 +0,0 @@
|
|
1
|
-
a6fdadc123557d04d2803080fd3ec3f23b971454
|
@@ -1 +0,0 @@
|
|
1
|
-
7d1bfef3d23865e56b3eb0e9dc238c85b8ceffa879ec1f04d2d8de4c11e3bef2
|
@@ -1 +0,0 @@
|
|
1
|
-
0163b91d3755b0bb41bb9c3b72e105e91a8de0ab7fce975777d445ec9f56dc1bcd00c4dc63f7646dfe00ecbb1a109dc5e664770516a6f201b541773fd9a7bc24
|
@@ -1,25 +0,0 @@
|
|
1
|
-
const chalk = require('chalk');
|
2
|
-
|
3
|
-
// @ts-ignore
|
4
|
-
console.error(chalk.yellow(`
|
5
|
-
========================= THE NEW JOURNEY BEGINS =============================
|
6
|
-
|
7
|
-
https://wix.github.io/Detox/docs/guide/jest
|
8
|
-
|
9
|
-
Sorry to say that Detox 20 comes without old adapters for Jest.
|
10
|
-
You have to rearrange your init code before you can continue your journey.
|
11
|
-
|
12
|
-
Navigate to the link and follow the migration guide steps.
|
13
|
-
|
14
|
-
Sincerely yours,
|
15
|
-
Detox team.
|
16
|
-
|
17
|
-
https://wix.github.io/Detox/docs/guide/jest
|
18
|
-
|
19
|
-
========================= THE NEW JOURNEY BEGINS =============================
|
20
|
-
|
21
|
-
`));
|
22
|
-
|
23
|
-
throw Object.assign(new Error(
|
24
|
-
'\n\nPlease follow the new Jest setup guide:\nhttps://wix.github.io/Detox/docs/guide/jest\n\n'
|
25
|
-
), { stack: '' });
|
@@ -1,12 +0,0 @@
|
|
1
|
-
const DEVICE_LAUNCH_ARGS_DEPRECATION = `\
|
2
|
-
--device-launch-args is a deprecated name of this option.
|
3
|
-
Please change your scripts to use --device-boot-args instead.`;
|
4
|
-
|
5
|
-
const DEVICE_LAUNCH_ARGS_GENERIC_DEPRECATION = `\
|
6
|
-
--device-launch-args / $DETOX_DEVICE_LAUNCH_ARGS is a deprecated name of this option.
|
7
|
-
Please change your scripts to use --device-boot-args / $DETOX_DEVICE_BOOT_ARGS instead.`;
|
8
|
-
|
9
|
-
module.exports = {
|
10
|
-
DEVICE_LAUNCH_ARGS_DEPRECATION,
|
11
|
-
DEVICE_LAUNCH_ARGS_GENERIC_DEPRECATION,
|
12
|
-
};
|