@nx/detox 22.7.0-beta.7 → 22.7.0-beta.8
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.
- package/executors.json +11 -11
- package/generators.json +22 -22
- package/migrations.json +50 -50
- package/package.json +7 -7
- package/project.json +10 -10
- package/src/executors/build/schema.json +20 -20
- package/src/executors/test/schema.json +168 -168
- package/src/generators/application/schema.json +67 -67
- package/src/generators/convert-to-inferred/schema.json +16 -16
- package/src/generators/init/schema.json +30 -30
package/executors.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
"executors": {
|
|
3
|
+
"build": {
|
|
4
|
+
"implementation": "./src/executors/build/build.impl",
|
|
5
|
+
"schema": "./src/executors/build/schema.json",
|
|
6
|
+
"description": "Run the command defined in build property of the specified configuration."
|
|
7
|
+
},
|
|
8
|
+
"test": {
|
|
9
|
+
"implementation": "./src/executors/test/test.impl",
|
|
10
|
+
"schema": "./src/executors/test/schema.json",
|
|
11
|
+
"description": "Initiating your detox test suite."
|
|
12
|
+
}
|
|
12
13
|
}
|
|
13
|
-
}
|
|
14
14
|
}
|
package/generators.json
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
2
|
+
"name": "Nx Detox",
|
|
3
|
+
"version": "0.1",
|
|
4
|
+
"extends": ["@nx/workspace"],
|
|
5
|
+
"generators": {
|
|
6
|
+
"init": {
|
|
7
|
+
"factory": "./src/generators/init/init#detoxInitGeneratorInternal",
|
|
8
|
+
"schema": "./src/generators/init/schema.json",
|
|
9
|
+
"description": "Initialize the `@nx/detox` plugin.",
|
|
10
|
+
"hidden": true
|
|
11
|
+
},
|
|
12
|
+
"application": {
|
|
13
|
+
"factory": "./src/generators/application/application#detoxApplicationGeneratorInternal",
|
|
14
|
+
"schema": "./src/generators/application/schema.json",
|
|
15
|
+
"aliases": ["app"],
|
|
16
|
+
"x-type": "application",
|
|
17
|
+
"description": "Create a Detox application."
|
|
18
|
+
},
|
|
19
|
+
"convert-to-inferred": {
|
|
20
|
+
"factory": "./src/generators/convert-to-inferred/convert-to-inferred",
|
|
21
|
+
"schema": "./src/generators/convert-to-inferred/schema.json",
|
|
22
|
+
"description": "Convert existing Detox project(s) using `@nx/detox:*` executors to use `@nx/detox/plugin`. Defaults to migrating all projects. Pass '--project' to migrate only one target."
|
|
23
|
+
}
|
|
23
24
|
}
|
|
24
|
-
}
|
|
25
25
|
}
|
package/migrations.json
CHANGED
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
"packageJsonUpdates": {
|
|
14
|
-
"20.3.0": {
|
|
15
|
-
"version": "20.3.0-beta.0",
|
|
16
|
-
"packages": {
|
|
17
|
-
"detox": {
|
|
18
|
-
"version": "~20.28.0",
|
|
19
|
-
"alwaysAddToPackageJson": false
|
|
20
|
-
},
|
|
21
|
-
"@testing-library/jest-dom": {
|
|
22
|
-
"version": "~6.6.3",
|
|
23
|
-
"alwaysAddToPackageJson": false
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
"20.4.0": {
|
|
28
|
-
"version": "20.4.0-beta.2",
|
|
29
|
-
"packages": {
|
|
30
|
-
"detox": {
|
|
31
|
-
"version": "~20.31.0",
|
|
32
|
-
"alwaysAddToPackageJson": false
|
|
33
|
-
},
|
|
34
|
-
"@config-plugins/detox": {
|
|
35
|
-
"version": "~9.0.0",
|
|
36
|
-
"alwaysAddToPackageJson": false
|
|
2
|
+
"generators": {
|
|
3
|
+
"update-22-0-0-remove-config-plugins-detox-for-expo-54": {
|
|
4
|
+
"requires": {
|
|
5
|
+
"expo": ">= 54.0.0"
|
|
6
|
+
},
|
|
7
|
+
"version": "22.2.0-beta.2",
|
|
8
|
+
"cli": "nx",
|
|
9
|
+
"description": "Remove @config-plugins/detox for Expo 54+ projects (package discontinued)",
|
|
10
|
+
"factory": "./src/migrations/update-22-0-0/remove-config-plugins-detox-for-expo-54"
|
|
37
11
|
}
|
|
38
|
-
}
|
|
39
12
|
},
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
13
|
+
"packageJsonUpdates": {
|
|
14
|
+
"20.3.0": {
|
|
15
|
+
"version": "20.3.0-beta.0",
|
|
16
|
+
"packages": {
|
|
17
|
+
"detox": {
|
|
18
|
+
"version": "~20.28.0",
|
|
19
|
+
"alwaysAddToPackageJson": false
|
|
20
|
+
},
|
|
21
|
+
"@testing-library/jest-dom": {
|
|
22
|
+
"version": "~6.6.3",
|
|
23
|
+
"alwaysAddToPackageJson": false
|
|
24
|
+
}
|
|
25
|
+
}
|
|
46
26
|
},
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
|
|
27
|
+
"20.4.0": {
|
|
28
|
+
"version": "20.4.0-beta.2",
|
|
29
|
+
"packages": {
|
|
30
|
+
"detox": {
|
|
31
|
+
"version": "~20.31.0",
|
|
32
|
+
"alwaysAddToPackageJson": false
|
|
33
|
+
},
|
|
34
|
+
"@config-plugins/detox": {
|
|
35
|
+
"version": "~9.0.0",
|
|
36
|
+
"alwaysAddToPackageJson": false
|
|
37
|
+
}
|
|
38
|
+
}
|
|
50
39
|
},
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
|
|
40
|
+
"22.0.0": {
|
|
41
|
+
"version": "22.0.0-beta.5",
|
|
42
|
+
"packages": {
|
|
43
|
+
"detox": {
|
|
44
|
+
"version": "~20.43.0",
|
|
45
|
+
"alwaysAddToPackageJson": false
|
|
46
|
+
},
|
|
47
|
+
"@config-plugins/detox": {
|
|
48
|
+
"version": "~11.0.0",
|
|
49
|
+
"alwaysAddToPackageJson": false
|
|
50
|
+
},
|
|
51
|
+
"@testing-library/jest-dom": {
|
|
52
|
+
"version": "~6.9.1",
|
|
53
|
+
"alwaysAddToPackageJson": false
|
|
54
|
+
}
|
|
55
|
+
}
|
|
54
56
|
}
|
|
55
|
-
}
|
|
56
57
|
}
|
|
57
|
-
}
|
|
58
58
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/detox",
|
|
3
|
-
"version": "22.7.0-beta.
|
|
3
|
+
"version": "22.7.0-beta.8",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Plugin for Detox contains executors and generators for allowing your workspace to use the powerful Detox integration testing capabilities.",
|
|
6
6
|
"keywords": [
|
|
@@ -28,16 +28,16 @@
|
|
|
28
28
|
"type": "commonjs",
|
|
29
29
|
"types": "index.d.ts",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@nx/devkit": "22.7.0-beta.
|
|
32
|
-
"@nx/jest": "22.7.0-beta.
|
|
33
|
-
"@nx/js": "22.7.0-beta.
|
|
34
|
-
"@nx/eslint": "22.7.0-beta.
|
|
35
|
-
"@nx/react": "22.7.0-beta.
|
|
31
|
+
"@nx/devkit": "22.7.0-beta.8",
|
|
32
|
+
"@nx/jest": "22.7.0-beta.8",
|
|
33
|
+
"@nx/js": "22.7.0-beta.8",
|
|
34
|
+
"@nx/eslint": "22.7.0-beta.8",
|
|
35
|
+
"@nx/react": "22.7.0-beta.8",
|
|
36
36
|
"semver": "^7.6.3",
|
|
37
37
|
"tslib": "^2.3.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"nx": "22.7.0-beta.
|
|
40
|
+
"nx": "22.7.0-beta.8"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"detox": "^20.9.0"
|
package/project.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
"name": "detox",
|
|
3
|
+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
4
|
+
"sourceRoot": "packages/detox/src",
|
|
5
|
+
"projectType": "library",
|
|
6
|
+
"targets": {
|
|
7
|
+
"build": {
|
|
8
|
+
"outputs": ["{workspaceRoot}/dist/packages/detox/README.md"],
|
|
9
|
+
"command": "node ./scripts/copy-readme.js detox",
|
|
10
|
+
"inputs": ["copyReadme"]
|
|
11
|
+
}
|
|
11
12
|
}
|
|
12
|
-
}
|
|
13
13
|
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
"version": 2,
|
|
3
|
+
"outputCapture": "direct-nodejs",
|
|
4
|
+
"title": "Run detox build",
|
|
5
|
+
"description": "Run detox build options.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"cli": "nx",
|
|
8
|
+
"properties": {
|
|
9
|
+
"detoxConfiguration": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Select a device configuration from your defined configurations, if not supplied, and there's only one configuration, detox will default to it.",
|
|
12
|
+
"alias": "C"
|
|
13
|
+
},
|
|
14
|
+
"configPath": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "Specify Detox config file path. If not supplied, detox searches for `.detoxrc[.js]` or `detox` section in `package.json`.",
|
|
17
|
+
"alias": "cp",
|
|
18
|
+
"x-completion-type": "file",
|
|
19
|
+
"x-completion-glob": ".detoxrc?(.js)"
|
|
20
|
+
}
|
|
13
21
|
},
|
|
14
|
-
"
|
|
15
|
-
"type": "string",
|
|
16
|
-
"description": "Specify Detox config file path. If not supplied, detox searches for `.detoxrc[.js]` or `detox` section in `package.json`.",
|
|
17
|
-
"alias": "cp",
|
|
18
|
-
"x-completion-type": "file",
|
|
19
|
-
"x-completion-glob": ".detoxrc?(.js)"
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
"required": []
|
|
22
|
+
"required": []
|
|
23
23
|
}
|
|
@@ -1,170 +1,170 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
2
|
+
"version": 2,
|
|
3
|
+
"outputCapture": "direct-nodejs",
|
|
4
|
+
"title": "Run detox test",
|
|
5
|
+
"description": "Run detox test options.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"cli": "nx",
|
|
8
|
+
"presets": [
|
|
9
|
+
{
|
|
10
|
+
"name": "Test a Detox Configuration",
|
|
11
|
+
"keys": ["detoxConfiguration"]
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "Reuse Existing Installed App",
|
|
15
|
+
"keys": ["reuse"]
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "Set Log Level",
|
|
19
|
+
"keys": ["loglevel"]
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"properties": {
|
|
23
|
+
"detoxConfiguration": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"description": "Select a device configuration from your defined configurations, if not supplied, and there's only one configuration, detox will default to it.",
|
|
26
|
+
"alias": "C",
|
|
27
|
+
"examples": [
|
|
28
|
+
"ios.sim.debug",
|
|
29
|
+
"ios.sim.release",
|
|
30
|
+
"android.emu.debug",
|
|
31
|
+
"android.emu.release"
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
"buildTarget": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"description": "Target which builds the application."
|
|
37
|
+
},
|
|
38
|
+
"configPath": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"description": "Specify Detox config file path. If not supplied, detox searches for `.detoxrc[.js]` or `detox` section in package.json.",
|
|
41
|
+
"alias": "cp",
|
|
42
|
+
"x-completion-type": "file",
|
|
43
|
+
"x-completion-glob": ".detoxrc?(.js)",
|
|
44
|
+
"x-priority": "important"
|
|
45
|
+
},
|
|
46
|
+
"loglevel": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"enum": ["fatal", "error", "warn", "info", "verbose", "trace"],
|
|
49
|
+
"description": "Log level: `fatal`, `error`, `warn`, `info`, `verbose`, `trace`.",
|
|
50
|
+
"alias": "l"
|
|
51
|
+
},
|
|
52
|
+
"retries": {
|
|
53
|
+
"type": "number",
|
|
54
|
+
"description": "[Jest Circus Only] Re-spawn the test runner for individual failing suite files until they pass, or `<N>` times at least."
|
|
55
|
+
},
|
|
56
|
+
"reuse": {
|
|
57
|
+
"type": "boolean",
|
|
58
|
+
"description": "Reuse existing installed app (do not delete + reinstall) for a faster run.",
|
|
59
|
+
"default": false
|
|
60
|
+
},
|
|
61
|
+
"cleanup": {
|
|
62
|
+
"type": "boolean",
|
|
63
|
+
"description": "Shutdown simulator when test is over, useful for CI scripts, to make sure detox exists cleanly with no residue",
|
|
64
|
+
"alias": "u"
|
|
65
|
+
},
|
|
66
|
+
"debugSynchronization": {
|
|
67
|
+
"type": "boolean",
|
|
68
|
+
"description": "Customize how long an action/expectation can take to complete before Detox starts querying the app why it is busy. By default, the app status will be printed if the action takes more than 10s to complete.",
|
|
69
|
+
"alias": "d"
|
|
70
|
+
},
|
|
71
|
+
"artifactsLocation": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"description": "Artifacts (logs, screenshots, etc) root directory.",
|
|
74
|
+
"alias": "a"
|
|
75
|
+
},
|
|
76
|
+
"recordLogs": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"enum": ["failing", "all", "none"],
|
|
79
|
+
"description": "Save logs during each test to artifacts directory. Pass `failing` to save logs of failing tests only."
|
|
80
|
+
},
|
|
81
|
+
"takeScreenshots": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"enum": ["manual", "failing", "all", "none"],
|
|
84
|
+
"description": "Save screenshots before and after each test to artifacts directory. Pass `failing` to save screenshots of failing tests only. "
|
|
85
|
+
},
|
|
86
|
+
"recordVideos": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"enum": ["failing", "all", "none"],
|
|
89
|
+
"description": "Save screen recordings of each test to artifacts directory. Pass `failing` to save recordings of failing tests only."
|
|
90
|
+
},
|
|
91
|
+
"recordPerformance": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"enum": ["all", "none"],
|
|
94
|
+
"description": "[iOS Only] Save Detox Instruments performance recordings of each test to artifacts directory."
|
|
95
|
+
},
|
|
96
|
+
"captureViewHierarchy": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"enum": ["enabled", "disabled"],
|
|
99
|
+
"description": "[iOS Only] Capture `*.uihierarchy` snapshots on view action errors and `device.captureViewHierarchy()` calls."
|
|
100
|
+
},
|
|
101
|
+
"jestReportSpecs": {
|
|
102
|
+
"type": "boolean",
|
|
103
|
+
"description": "[Jest Only] Whether to output logs per each running spec, in real-time. By default, disabled with multiple workers."
|
|
104
|
+
},
|
|
105
|
+
"headless": {
|
|
106
|
+
"type": "boolean",
|
|
107
|
+
"description": "Android Only] Launch Emulator in headless mode. Useful when running on CI."
|
|
108
|
+
},
|
|
109
|
+
"gpu": {
|
|
110
|
+
"type": "boolean",
|
|
111
|
+
"description": "[Android Only] Launch Emulator with the specific `-gpu [gpu mode]` parameter."
|
|
112
|
+
},
|
|
113
|
+
"keepLockFile": {
|
|
114
|
+
"type": "boolean",
|
|
115
|
+
"description": "Keep the device lock file when running Detox tests."
|
|
116
|
+
},
|
|
117
|
+
"deviceName": {
|
|
118
|
+
"type": "string",
|
|
119
|
+
"description": "Override the device name specified in a configuration. Useful for running a single build configuration on multiple devices.",
|
|
120
|
+
"alias": "n"
|
|
121
|
+
},
|
|
122
|
+
"deviceBootArgs": {
|
|
123
|
+
"type": "string",
|
|
124
|
+
"description": "Custom arguments to pass (through) onto the device (emulator/simulator) binary when booted."
|
|
125
|
+
},
|
|
126
|
+
"appLaunchArgs": {
|
|
127
|
+
"type": "number",
|
|
128
|
+
"description": "Custom arguments to pass (through) onto the app every time it is launched."
|
|
129
|
+
},
|
|
130
|
+
"useCustomLogger": {
|
|
131
|
+
"type": "boolean",
|
|
132
|
+
"description": "Use Detox' custom console-logging implementation, for logging Detox (non-device) logs. Disabling will fallback to Node.js / test-runner's implementation (e.g. Jest / Mocha)."
|
|
133
|
+
},
|
|
134
|
+
"forceAdbInstall": {
|
|
135
|
+
"type": "boolean",
|
|
136
|
+
"description": "Due to problems with the adb install command on Android, Detox resorts to a different scheme for install APK's. Setting true will disable that and force usage of `adb install`, instead."
|
|
137
|
+
},
|
|
138
|
+
"inspectBrk": {
|
|
139
|
+
"type": "boolean",
|
|
140
|
+
"description": "Uses node's `--inspect-brk` flag to let users debug the jest/mocha test runner"
|
|
141
|
+
},
|
|
142
|
+
"color": {
|
|
143
|
+
"type": "boolean",
|
|
144
|
+
"description": "Colors in log output"
|
|
145
|
+
},
|
|
146
|
+
"runnerConfig": {
|
|
147
|
+
"type": "string",
|
|
148
|
+
"description": "Test runner config file, defaults to `e2e/mocha.opts` for mocha and `e2e/config.json` for Jest.",
|
|
149
|
+
"alias": "o",
|
|
150
|
+
"x-deprecated": "Deprecated in Detox 20. It is default to jest.config.json. It could be specified in .detoxrc.json"
|
|
151
|
+
},
|
|
152
|
+
"recordTimeline": {
|
|
153
|
+
"type": "string",
|
|
154
|
+
"enum": ["all", "none"],
|
|
155
|
+
"description": "[Jest Only] Record tests and events timeline, for visual display on the `chrome://tracing` tool.",
|
|
156
|
+
"x-deprecated": "Deprecated in Detox 20."
|
|
157
|
+
},
|
|
158
|
+
"workers": {
|
|
159
|
+
"type": "number",
|
|
160
|
+
"description": "Specifies number of workers the test runner should spawn, requires a test runner with parallel execution support (Detox CLI currently supports Jest).",
|
|
161
|
+
"x-deprecated": "Deprecated in Detox 20."
|
|
162
|
+
},
|
|
163
|
+
"deviceLaunchArgs": {
|
|
164
|
+
"type": "string",
|
|
165
|
+
"description": "A list of passthrough-arguments to use when (if) devices (Android emulator / iOS simulator) are launched by Detox.",
|
|
166
|
+
"x-deprecated": "Deprecated in Detox 20. Use `deviceBootArgs` instead."
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"required": ["detoxConfiguration"]
|
|
170
170
|
}
|
|
@@ -1,70 +1,70 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"title": "Create Detox Configuration for the workspace",
|
|
4
|
+
"description": "Create Detox Configuration for the workspace.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"appProject": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "Name of the frontend project to be tested.",
|
|
10
|
+
"$default": {
|
|
11
|
+
"$source": "projectName"
|
|
12
|
+
},
|
|
13
|
+
"x-prompt": "What is the name of the frontend project to test?"
|
|
14
|
+
},
|
|
15
|
+
"e2eDirectory": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "A directory where the project is placed relative current working directory (CWD).",
|
|
18
|
+
"$default": {
|
|
19
|
+
"$source": "argv",
|
|
20
|
+
"index": 0
|
|
21
|
+
},
|
|
22
|
+
"x-prompt": "Which directory do you want to create the E2E project in?"
|
|
23
|
+
},
|
|
24
|
+
"e2eName": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"description": "Name of the E2E Project."
|
|
27
|
+
},
|
|
28
|
+
"appName": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"description": "Name of the app to be tested if different from appProject"
|
|
31
|
+
},
|
|
32
|
+
"appDisplayName": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"description": "Display name of the app to be tested if different from appProject"
|
|
35
|
+
},
|
|
36
|
+
"framework": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"description": "App framework to test",
|
|
39
|
+
"enum": ["react-native", "expo"],
|
|
40
|
+
"x-prompt": "What app framework should detox test?"
|
|
41
|
+
},
|
|
42
|
+
"linter": {
|
|
43
|
+
"description": "The tool to use for running lint checks.",
|
|
44
|
+
"type": "string",
|
|
45
|
+
"enum": ["eslint", "none"],
|
|
46
|
+
"default": "eslint"
|
|
47
|
+
},
|
|
48
|
+
"js": {
|
|
49
|
+
"description": "Generate JavaScript files rather than TypeScript files.",
|
|
50
|
+
"type": "boolean",
|
|
51
|
+
"default": false
|
|
52
|
+
},
|
|
53
|
+
"skipFormat": {
|
|
54
|
+
"description": "Skip formatting files.",
|
|
55
|
+
"type": "boolean",
|
|
56
|
+
"default": false,
|
|
57
|
+
"x-priority": "internal"
|
|
58
|
+
},
|
|
59
|
+
"setParserOptionsProject": {
|
|
60
|
+
"type": "boolean",
|
|
61
|
+
"description": "Whether or not to configure the ESLint `parserOptions.project` option. We do not do this by default for lint performance reasons.",
|
|
62
|
+
"default": false
|
|
63
|
+
},
|
|
64
|
+
"useProjectJson": {
|
|
65
|
+
"type": "boolean",
|
|
66
|
+
"description": "Use a `project.json` configuration file instead of inlining the Nx configuration in the `package.json` file."
|
|
67
|
+
}
|
|
14
68
|
},
|
|
15
|
-
"
|
|
16
|
-
"type": "string",
|
|
17
|
-
"description": "A directory where the project is placed relative current working directory (CWD).",
|
|
18
|
-
"$default": {
|
|
19
|
-
"$source": "argv",
|
|
20
|
-
"index": 0
|
|
21
|
-
},
|
|
22
|
-
"x-prompt": "Which directory do you want to create the E2E project in?"
|
|
23
|
-
},
|
|
24
|
-
"e2eName": {
|
|
25
|
-
"type": "string",
|
|
26
|
-
"description": "Name of the E2E Project."
|
|
27
|
-
},
|
|
28
|
-
"appName": {
|
|
29
|
-
"type": "string",
|
|
30
|
-
"description": "Name of the app to be tested if different from appProject"
|
|
31
|
-
},
|
|
32
|
-
"appDisplayName": {
|
|
33
|
-
"type": "string",
|
|
34
|
-
"description": "Display name of the app to be tested if different from appProject"
|
|
35
|
-
},
|
|
36
|
-
"framework": {
|
|
37
|
-
"type": "string",
|
|
38
|
-
"description": "App framework to test",
|
|
39
|
-
"enum": ["react-native", "expo"],
|
|
40
|
-
"x-prompt": "What app framework should detox test?"
|
|
41
|
-
},
|
|
42
|
-
"linter": {
|
|
43
|
-
"description": "The tool to use for running lint checks.",
|
|
44
|
-
"type": "string",
|
|
45
|
-
"enum": ["eslint", "none"],
|
|
46
|
-
"default": "eslint"
|
|
47
|
-
},
|
|
48
|
-
"js": {
|
|
49
|
-
"description": "Generate JavaScript files rather than TypeScript files.",
|
|
50
|
-
"type": "boolean",
|
|
51
|
-
"default": false
|
|
52
|
-
},
|
|
53
|
-
"skipFormat": {
|
|
54
|
-
"description": "Skip formatting files.",
|
|
55
|
-
"type": "boolean",
|
|
56
|
-
"default": false,
|
|
57
|
-
"x-priority": "internal"
|
|
58
|
-
},
|
|
59
|
-
"setParserOptionsProject": {
|
|
60
|
-
"type": "boolean",
|
|
61
|
-
"description": "Whether or not to configure the ESLint `parserOptions.project` option. We do not do this by default for lint performance reasons.",
|
|
62
|
-
"default": false
|
|
63
|
-
},
|
|
64
|
-
"useProjectJson": {
|
|
65
|
-
"type": "boolean",
|
|
66
|
-
"description": "Use a `project.json` configuration file instead of inlining the Nx configuration in the `package.json` file."
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
"required": ["e2eDirectory", "appProject", "framework"]
|
|
69
|
+
"required": ["e2eDirectory", "appProject", "framework"]
|
|
70
70
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"$id": "NxDetoxConvertToInferred",
|
|
4
|
+
"description": "Convert existing Detox project(s) using `@nx/detox:*` executors to use `@nx/detox/plugin`. Defaults to migrating all projects. Pass '--project' to migrate only one target.",
|
|
5
|
+
"title": "Convert Detox project from executor to plugin",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"project": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "The project to convert from using the `@nx/detox:*` executors to use `@nx/detox/plugin`.",
|
|
11
|
+
"x-priority": "important"
|
|
12
|
+
},
|
|
13
|
+
"skipFormat": {
|
|
14
|
+
"type": "boolean",
|
|
15
|
+
"description": "Whether to format files at the end of the migration.",
|
|
16
|
+
"default": false
|
|
17
|
+
}
|
|
17
18
|
}
|
|
18
|
-
}
|
|
19
19
|
}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"title": "Add Detox Schematics",
|
|
4
|
+
"description": "Add Detox Schematics.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"skipFormat": {
|
|
8
|
+
"description": "Skip formatting files.",
|
|
9
|
+
"type": "boolean",
|
|
10
|
+
"default": false,
|
|
11
|
+
"x-priority": "internal"
|
|
12
|
+
},
|
|
13
|
+
"skipPackageJson": {
|
|
14
|
+
"type": "boolean",
|
|
15
|
+
"default": false,
|
|
16
|
+
"description": "Do not add dependencies to `package.json`.",
|
|
17
|
+
"x-priority": "internal"
|
|
18
|
+
},
|
|
19
|
+
"keepExistingVersions": {
|
|
20
|
+
"type": "boolean",
|
|
21
|
+
"x-priority": "internal",
|
|
22
|
+
"description": "Keep existing dependencies versions",
|
|
23
|
+
"default": false
|
|
24
|
+
},
|
|
25
|
+
"updatePackageScripts": {
|
|
26
|
+
"type": "boolean",
|
|
27
|
+
"x-priority": "internal",
|
|
28
|
+
"description": "Update `package.json` scripts with inferred targets",
|
|
29
|
+
"default": false
|
|
30
|
+
}
|
|
12
31
|
},
|
|
13
|
-
"
|
|
14
|
-
"type": "boolean",
|
|
15
|
-
"default": false,
|
|
16
|
-
"description": "Do not add dependencies to `package.json`.",
|
|
17
|
-
"x-priority": "internal"
|
|
18
|
-
},
|
|
19
|
-
"keepExistingVersions": {
|
|
20
|
-
"type": "boolean",
|
|
21
|
-
"x-priority": "internal",
|
|
22
|
-
"description": "Keep existing dependencies versions",
|
|
23
|
-
"default": false
|
|
24
|
-
},
|
|
25
|
-
"updatePackageScripts": {
|
|
26
|
-
"type": "boolean",
|
|
27
|
-
"x-priority": "internal",
|
|
28
|
-
"description": "Update `package.json` scripts with inferred targets",
|
|
29
|
-
"default": false
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
"required": []
|
|
32
|
+
"required": []
|
|
33
33
|
}
|