@nx/detox 22.0.1 → 22.0.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/detox",
3
- "version": "22.0.1",
3
+ "version": "22.0.3",
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": [
@@ -27,15 +27,15 @@
27
27
  "main": "./index.js",
28
28
  "types": "index.d.ts",
29
29
  "dependencies": {
30
- "@nx/devkit": "22.0.1",
31
- "@nx/jest": "22.0.1",
32
- "@nx/js": "22.0.1",
33
- "@nx/eslint": "22.0.1",
34
- "@nx/react": "22.0.1",
30
+ "@nx/devkit": "22.0.3",
31
+ "@nx/jest": "22.0.3",
32
+ "@nx/js": "22.0.3",
33
+ "@nx/eslint": "22.0.3",
34
+ "@nx/react": "22.0.3",
35
35
  "tslib": "^2.3.0"
36
36
  },
37
37
  "devDependencies": {
38
- "nx": "22.0.1"
38
+ "nx": "22.0.3"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "detox": "^20.9.0"
@@ -1 +1 @@
1
- {"version":3,"file":"build.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/detox/src/executors/build/build.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAI7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAC;CAClB;AAID,wBAA+B,kBAAkB,CAC/C,OAAO,EAAE,iBAAiB,EAC1B,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC,gBAAgB,CAAC,CAalC;AAED,wBAAgB,WAAW,CACzB,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,iBAAiB,oBA2B3B"}
1
+ {"version":3,"file":"build.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/detox/src/executors/build/build.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAK7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAC;CAClB;AAID,wBAA+B,kBAAkB,CAC/C,OAAO,EAAE,iBAAiB,EAC1B,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC,gBAAgB,CAAC,CAalC;AAED,wBAAgB,WAAW,CACzB,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,iBAAiB,oBA4B3B"}
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = detoxBuildExecutor;
4
4
  exports.runCliBuild = runCliBuild;
5
+ const internal_1 = require("@nx/devkit/internal");
5
6
  const path_1 = require("path");
6
7
  const child_process_1 = require("child_process");
7
8
  let childProcess;
@@ -29,7 +30,9 @@ function runCliBuild(workspaceRoot, projectRoot, options) {
29
30
  childProcess.on('error', (err) => {
30
31
  reject(err);
31
32
  });
32
- childProcess.on('exit', (code) => {
33
+ childProcess.on('exit', (code, signal) => {
34
+ if (code === null)
35
+ code = (0, internal_1.signalToCode)(signal);
33
36
  if (code === 0) {
34
37
  resolve(code);
35
38
  }
@@ -1 +1 @@
1
- {"version":3,"file":"test.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/detox/src/executors/test/test.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EAGhB,MAAM,YAAY,CAAC;AAQpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,OAAO,CAAC;CAClB;AAID,wBAA+B,iBAAiB,CAC9C,OAAO,EAAE,gBAAgB,EACzB,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC,eAAe,CAAC,CA0BjC"}
1
+ {"version":3,"file":"test.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/detox/src/executors/test/test.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EAGhB,MAAM,YAAY,CAAC;AASpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,OAAO,CAAC;CAClB;AAID,wBAA+B,iBAAiB,CAC9C,OAAO,EAAE,gBAAgB,EACzB,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC,eAAe,CAAC,CA0BjC"}
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = detoxTestExecutor;
4
4
  const devkit_1 = require("@nx/devkit");
5
+ const internal_1 = require("@nx/devkit/internal");
5
6
  const devkit_2 = require("@nx/devkit");
6
7
  const path_1 = require("path");
7
8
  const child_process_1 = require("child_process");
@@ -39,7 +40,9 @@ function runCliTest(workspaceRoot, projectRoot, options) {
39
40
  childProcess.on('error', (err) => {
40
41
  reject(err);
41
42
  });
42
- childProcess.on('exit', (code) => {
43
+ childProcess.on('exit', (code, signal) => {
44
+ if (code === null)
45
+ code = (0, internal_1.signalToCode)(signal);
43
46
  if (code === 0) {
44
47
  resolve(code);
45
48
  }
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable */
2
- <% if (js) { %>const { readFileSync } = require('fs')<% } else { %>import { readFileSync } from 'fs';<% } %>
2
+ const { readFileSync } = require('fs');
3
3
 
4
4
  // Reading the SWC compilation config for the spec files
5
5
  const swcJestConfig = JSON.parse(
@@ -9,7 +9,7 @@ const swcJestConfig = JSON.parse(
9
9
  // Disable .swcrc look-up by SWC core because we're passing in swcJestConfig ourselves
10
10
  swcJestConfig.swcrc = false;
11
11
 
12
- <% if (js) { %>module.exports =<% } else { %>export default<% } %> {
12
+ module.exports = {
13
13
  preset: "<%= offsetFromRoot %>jest.preset",
14
14
  rootDir: ".",
15
15
  testMatch: [
@@ -14,7 +14,7 @@ function createFiles(host, options) {
14
14
  offsetFromRoot,
15
15
  rootTsConfigPath,
16
16
  jestConfigFileName: options.isUsingTsSolutionConfig
17
- ? 'jest.config.ts'
17
+ ? 'jest.config.cts'
18
18
  : 'jest.config.json',
19
19
  });
20
20
  if (options.isUsingTsSolutionConfig) {