@nx/detox 16.1.4 → 16.2.0-beta.0

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/migrations.json CHANGED
@@ -241,6 +241,15 @@
241
241
  "alwaysAddToPackageJson": false
242
242
  }
243
243
  }
244
+ },
245
+ "16.1.5": {
246
+ "version": "16.1.5-beta.0",
247
+ "packages": {
248
+ "detox": {
249
+ "version": "^20.9.0",
250
+ "alwaysAddToPackageJson": false
251
+ }
252
+ }
244
253
  }
245
254
  }
246
255
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/detox",
3
- "version": "16.1.4",
3
+ "version": "16.2.0-beta.0",
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": [
@@ -25,15 +25,15 @@
25
25
  "main": "./index",
26
26
  "types": "index.d.ts",
27
27
  "dependencies": {
28
- "@nrwl/detox": "16.1.4",
29
- "@nx/devkit": "16.1.4",
30
- "@nx/jest": "16.1.4",
31
- "@nx/js": "16.1.4",
32
- "@nx/linter": "16.1.4",
33
- "@nx/react": "16.1.4"
28
+ "@nrwl/detox": "16.2.0-beta.0",
29
+ "@nx/devkit": "16.2.0-beta.0",
30
+ "@nx/jest": "16.2.0-beta.0",
31
+ "@nx/js": "16.2.0-beta.0",
32
+ "@nx/linter": "16.2.0-beta.0",
33
+ "@nx/react": "16.2.0-beta.0"
34
34
  },
35
35
  "peerDependencies": {
36
- "detox": "~20.8.0"
36
+ "detox": "^20.9.0"
37
37
  },
38
38
  "builders": "./executors.json",
39
39
  "ng-update": {
@@ -44,5 +44,5 @@
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  },
47
- "gitHead": "16f098804653374057eff7e2f9565fb4c7a90b29"
47
+ "gitHead": "f7ba85e8ec9c074eaee81731a20aee7ea6dbc8aa"
48
48
  }
@@ -7,8 +7,16 @@
7
7
  "cli": "nx",
8
8
  "presets": [
9
9
  {
10
- "name": "Run tests",
11
- "keys": ["detoxConfiguration", "loglevel", "reuse"]
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"]
12
20
  }
13
21
  ],
14
22
  "properties": {
@@ -35,22 +43,26 @@
35
43
  "x-completion-glob": ".detoxrc?(.js)",
36
44
  "x-priority": "important"
37
45
  },
38
- "runnerConfig": {
39
- "type": "string",
40
- "description": "Test runner config file, defaults to `e2e/mocha.opts` for mocha and `e2e/config.json` for Jest.",
41
- "alias": "o"
42
- },
43
- "deviceName": {
44
- "type": "string",
45
- "description": "Override the device name specified in a configuration. Useful for running a single build configuration on multiple devices.",
46
- "alias": "n"
47
- },
48
46
  "loglevel": {
49
47
  "type": "string",
50
48
  "enum": ["fatal", "error", "warn", "info", "verbose", "trace"],
51
49
  "description": "Log level: `fatal`, `error`, `warn`, `info`, `verbose`, `trace`.",
52
50
  "alias": "l"
53
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
+ },
54
66
  "debugSynchronization": {
55
67
  "type": "boolean",
56
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.",
@@ -81,33 +93,11 @@
81
93
  "enum": ["all", "none"],
82
94
  "description": "[iOS Only] Save Detox Instruments performance recordings of each test to artifacts directory."
83
95
  },
84
- "recordTimeline": {
85
- "type": "string",
86
- "enum": ["all", "none"],
87
- "description": "[Jest Only] Record tests and events timeline, for visual display on the `chrome://tracing` tool."
88
- },
89
96
  "captureViewHierarchy": {
90
97
  "type": "string",
91
98
  "enum": ["enabled", "disabled"],
92
99
  "description": "[iOS Only] Capture `*.uihierarchy` snapshots on view action errors and `device.captureViewHierarchy()` calls."
93
100
  },
94
- "retries": {
95
- "type": "number",
96
- "description": "[Jest Circus Only] Re-spawn the test runner for individual failing suite files until they pass, or `<N>` times at least."
97
- },
98
- "reuse": {
99
- "type": "boolean",
100
- "description": "Reuse existing installed app (do not delete + reinstall) for a faster run.",
101
- "default": true
102
- },
103
- "cleanup": {
104
- "type": "boolean",
105
- "description": "Shutdown simulator when test is over, useful for CI scripts, to make sure detox exists cleanly with no residue"
106
- },
107
- "workers": {
108
- "type": "number",
109
- "description": "Specifies number of workers the test runner should spawn, requires a test runner with parallel execution support (Detox CLI currently supports Jest)."
110
- },
111
101
  "jestReportSpecs": {
112
102
  "type": "boolean",
113
103
  "description": "[Jest Only] Whether to output logs per each running spec, in real-time. By default, disabled with multiple workers."
@@ -120,18 +110,23 @@
120
110
  "type": "boolean",
121
111
  "description": "[Android Only] Launch Emulator with the specific `-gpu [gpu mode]` parameter."
122
112
  },
123
- "deviceLaunchArgs": {
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": {
124
123
  "type": "string",
125
- "description": "A list of passthrough-arguments to use when (if) devices (Android emulator / iOS simulator) are launched by Detox."
124
+ "description": "Custom arguments to pass (through) onto the device (emulator/simulator) binary when booted."
126
125
  },
127
126
  "appLaunchArgs": {
128
127
  "type": "number",
129
128
  "description": "Custom arguments to pass (through) onto the app every time it is launched."
130
129
  },
131
- "noColor": {
132
- "type": "boolean",
133
- "description": "Disable colors in log output"
134
- },
135
130
  "useCustomLogger": {
136
131
  "type": "boolean",
137
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)."
@@ -143,6 +138,32 @@
143
138
  "inspectBrk": {
144
139
  "type": "boolean",
145
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."
146
167
  }
147
168
  },
148
169
  "required": ["detoxConfiguration"]
@@ -11,7 +11,7 @@ function detoxTestExecutor(options, context) {
11
11
  return tslib_1.__asyncGenerator(this, arguments, function* detoxTestExecutor_1() {
12
12
  const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
13
13
  try {
14
- if (options.buildTarget) {
14
+ if (!options.reuse && options.buildTarget) {
15
15
  const buildTarget = (0, devkit_1.parseTargetString)(options.buildTarget, context.projectGraph);
16
16
  const buildOptions = (0, devkit_1.readTargetOptions)(buildTarget, context);
17
17
  yield tslib_1.__await((0, build_impl_1.runCliBuild)(context.root, projectRoot, Object.assign(Object.assign({}, buildOptions), { detoxConfiguration: options.detoxConfiguration })));
@@ -59,11 +59,17 @@ function createDetoxTestOptions(options) {
59
59
  else if (k === 'detoxConfiguration') {
60
60
  acc.push('--configuration', propertyValue);
61
61
  }
62
- else if (k === 'deviceLaunchArgs') {
63
- acc.push(`--device-launch-args="${propertyValue}"`); // the value must be specified after an equal sign (=) and inside quotes.
62
+ else if (k === 'deviceBootArgs') {
63
+ acc.push(`--device-boot-args="${propertyValue}"`); // the value must be specified after an equal sign (=) and inside quotes: https://wix.github.io/Detox/docs/cli/test
64
64
  }
65
65
  else if (k === 'appLaunchArgs') {
66
- acc.push(`--app-launch-argss="${propertyValue}"`); // the value must be specified after an equal sign (=) and inside quotes.
66
+ acc.push(`--app-launch-args="${propertyValue}"`); // the value must be specified after an equal sign (=) and inside quotes: https://wix.github.io/Detox/docs/cli/test
67
+ }
68
+ else if (k === 'color') {
69
+ // detox only accepts --no-color, not --color
70
+ if (!propertyValue) {
71
+ acc.push('--no-color');
72
+ }
67
73
  }
68
74
  else {
69
75
  const propertyName = (0, devkit_2.names)(k).fileName; // convert camelCase to kebab-case
@@ -1 +1 @@
1
- {"version":3,"file":"test.impl.js","sourceRoot":"","sources":["../../../../../../packages/detox/src/executors/test/test.impl.ts"],"names":[],"mappings":";;;AAAA,uCAIoB;AACpB,uCAAmC;AACnC,+BAA4B;AAC5B,iDAAmD;AAGnD,oDAAkD;AAQlD,IAAI,YAA0B,CAAC;AAE/B,SAA+B,iBAAiB,CAC9C,OAAyB,EACzB,OAAwB;;QAExB,MAAM,WAAW,GACf,OAAO,CAAC,sBAAsB,CAAC,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC;QAEpE,IAAI;YACF,IAAI,OAAO,CAAC,WAAW,EAAE;gBACvB,MAAM,WAAW,GAAG,IAAA,0BAAiB,EACnC,OAA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H;SACvK;aAAM,IAAI,CAAC,KAAK,eAAe,EAAE;YAChC,GAAG,CAAC,IAAI,CAAC,sBAAsB,aAAa,GAAG,CAAC,CAAC,CAAC,mHAAmH;SACtK;aAAM,IAAI,CAAC,KAAK,OAAO,EAAE;YACxB,6CAA6C;YAC7C,IAAI,CAAC,aAAa,EAAE;gBAClB,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;aACxB;SACF;aAAM;YACL,MAAM,YAAY,GAAG,IAAA,cAAK,EAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,kCAAkC;YAC1E,GAAG,CAAC,IAAI,CAAC,KAAK,YAAY,EAAE,EAAE,aAAa,CAAC,CAAC;SAC9C;QACD,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC"}
@@ -44,7 +44,7 @@
44
44
  <% if (framework === 'expo') { %>
45
45
  "android.eas": {
46
46
  "type": "android.apk",
47
- "build": "<%= exec %> nx run <%= appFileName %>:download --platform android --output=<%= offsetFromRoot %><%= appRoot %>/dist/",
47
+ "build": "<%= exec %> nx run <%= appFileName %>:download --platform android --distribution simulator --output=<%= offsetFromRoot %><%= appRoot %>/dist/",
48
48
  "binaryPath": "<%= offsetFromRoot %><%= appRoot %>/dist/<%= appExpoName %>.apk"
49
49
  },
50
50
  "android.local": {
@@ -23,8 +23,12 @@ function update(tree) {
23
23
  }
24
24
  exports.default = update;
25
25
  function updateDetoxrcJson(host, project) {
26
+ var _a, _b;
26
27
  const detoxConfigPath = `${project.root}/.detoxrc.json`;
27
- const projectName = project.name;
28
+ const projectName = ((_a = project.name) === null || _a === void 0 ? void 0 : _a.endsWith('-e2e'))
29
+ ? project.name.substring(0, project.name.indexOf('-e2e'))
30
+ : project.name;
31
+ const appRoot = (_b = (0, devkit_1.getProjects)(host).get(projectName)) === null || _b === void 0 ? void 0 : _b.root;
28
32
  const appName = (0, devkit_1.names)(projectName).className;
29
33
  const offset = (0, devkit_1.offsetFromRoot)(project.root);
30
34
  const exec = (0, devkit_1.getPackageManagerCommand)((0, devkit_1.detectPackageManager)(host.root)).exec;
@@ -33,17 +37,17 @@ function updateDetoxrcJson(host, project) {
33
37
  (0, devkit_1.updateJson)(host, detoxConfigPath, (json) => {
34
38
  var _a, _b, _c, _d;
35
39
  if ((_a = json.apps) === null || _a === void 0 ? void 0 : _a['ios.eas']) {
36
- json.apps['ios.eas'].build = `${exec} nx run ${projectName}:download --platform ios --distribution simulator --output=${offset}${project.root}/dist/`;
40
+ json.apps['ios.eas'].build = `${exec} nx run ${projectName}:download --platform ios --distribution simulator --output=${offset}${appRoot}/dist/`;
37
41
  }
38
42
  if ((_b = json.apps) === null || _b === void 0 ? void 0 : _b['android.eas']) {
39
- json.apps['android.eas'].build = `${exec} nx run ${projectName}:download --platform android --distribution simulator --output=${offset}${project.root}/dist/`;
43
+ json.apps['android.eas'].build = `${exec} nx run ${projectName}:download --platform android --distribution simulator --output=${offset}${appRoot}/dist/`;
40
44
  json.apps['android.eas'].type = 'android.apk';
41
45
  }
42
46
  if ((_c = json.apps) === null || _c === void 0 ? void 0 : _c['ios.local']) {
43
- json.apps['ios.local'].build = `${exec} nx run ${projectName}:build --platform ios --configuration=debug --output=${offset}${project.root}/dist/${appName}.tar.gz`;
47
+ json.apps['ios.local'].build = `${exec} nx run ${projectName}:build --platform ios --profile preview --wait --local --no-interactive --output=${offset}${appRoot}/dist/${appName}.tar.gz`;
44
48
  }
45
49
  if ((_d = json.apps) === null || _d === void 0 ? void 0 : _d['android.local']) {
46
- json.apps['android.local'].build = `${exec} nx run ${projectName}:build --platform android --configuration=debug --output=${offset}${project.root}/dist/${appName}.apk`;
50
+ json.apps['android.local'].build = `${exec} nx run ${projectName}:build --platform android --profile preview --wait --local --no-interactive --output=${offset}${appRoot}/dist/${appName}.apk`;
47
51
  json.apps['android.local'].type = 'android.apk';
48
52
  }
49
53
  return json;
@@ -1 +1 @@
1
- {"version":3,"file":"update-detoxrc-json-expo.js","sourceR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OAAO,CAAC,OAAO,0CAAG,cAAc,CAAC,0CAAE,OAAO,0CAAE,kBAAkB;QAC9D,iBAAiB,EACjB;QACA,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,OAAO,CAAC,kBAAkB;YACzD,iBAAiB,CAAC;QACpB,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,GAAG;YAChC,QAAQ,EAAE,gBAAgB;YAC1B,OAAO,EAAE;gBACP,kBAAkB,EAAE,iBAAiB;gBACrC,WAAW,EAAE,GAAG,OAAO,CAAC,IAAI,gBAAgB;aAC7C;YACD,cAAc,EAAE;gBACd,KAAK,EAAE;oBACL,kBAAkB,EAAE,mBAAmB;oBACvC,WAAW,EAAE,GAAG,OAAO,CAAC,IAAI,sBAAsB;iBACnD;gBACD,IAAI,EAAE;oBACJ,kBAAkB,EAAE,mBAAmB;oBACvC,WAAW,EAAE,GAAG,OAAO,CAAC,IAAI,qBAAqB;iBAClD;gBACD,UAAU,EAAE;oBACV,kBAAkB,EAAE,qBAAqB;oBACzC,WAAW,EAAE,GAAG,OAAO,CAAC,IAAI,2BAA2B;iBACxD;aACF;SACF,CAAC;KACH;IACD,IAAA,mCAA0B,EAAC,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAC1D,CAAC"}
1
+ {"version":3,"file":"update-detoxrc-json-expo.js","sourceRoot":"","sources":["../../../../../../packages/detox/src/migrations/update-16-1-4/update-detoxrc-json-expo.ts"],"names":[],"mappings":";;;AAAA,uCAWoB;AAEpB;;;;;GAKG;AACH,SAA8B,MAAM,CAAC,IAAU;;QAC7C,MAAM,QAAQ,GAAG,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;QAEnC,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;;YAC3B,IAAI,CAAA,MAAA,MAAA,OAAO,CAAC,OAAO,0CAAG,UAAU,CAAC,0CAAE,QAAQ,MAAK,gBAAgB;gBAAE,OAAO;YACzE,iB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Ae,CAAC,CAAC,OAAO,CAAC,kBAAkB;YACzD,iBAAiB,CAAC;QACpB,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,GAAG;YAChC,QAAQ,EAAE,gBAAgB;YAC1B,OAAO,EAAE;gBACP,kBAAkB,EAAE,iBAAiB;gBACrC,WAAW,EAAE,GAAG,OAAO,CAAC,IAAI,gBAAgB;aAC7C;YACD,cAAc,EAAE;gBACd,KAAK,EAAE;oBACL,kBAAkB,EAAE,mBAAmB;oBACvC,WAAW,EAAE,GAAG,OAAO,CAAC,IAAI,sBAAsB;iBACnD;gBACD,IAAI,EAAE;oBACJ,kBAAkB,EAAE,mBAAmB;oBACvC,WAAW,EAAE,GAAG,OAAO,CAAC,IAAI,qBAAqB;iBAClD;gBACD,UAAU,EAAE;oBACV,kBAAkB,EAAE,qBAAqB;oBACzC,WAAW,EAAE,GAAG,OAAO,CAAC,IAAI,2BAA2B;iBACxD;aACF;SACF,CAAC;KACH;IACD,IAAA,mCAA0B,EAAC,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAC1D,CAAC"}
@@ -1,4 +1,4 @@
1
1
  export declare const nxVersion: any;
2
- export declare const detoxVersion = "~20.8.0";
2
+ export declare const detoxVersion = "^20.9.0";
3
3
  export declare const testingLibraryJestDom = "5.16.5";
4
4
  export declare const configPluginsDetoxVersion = "~5.0.1";
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.configPluginsDetoxVersion = exports.testingLibraryJestDom = exports.detoxVersion = exports.nxVersion = void 0;
4
4
  exports.nxVersion = require('../../package.json').version;
5
- exports.detoxVersion = '~20.8.0';
5
+ exports.detoxVersion = '^20.9.0';
6
6
  exports.testingLibraryJestDom = '5.16.5';
7
7
  exports.configPluginsDetoxVersion = '~5.0.1'; // only required for expo
8
8
  //# sourceMappingURL=versions.js.map