@nx/detox 22.1.0-beta.5 → 22.1.0-beta.6

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.1.0-beta.5",
3
+ "version": "22.1.0-beta.6",
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.1.0-beta.5",
31
- "@nx/jest": "22.1.0-beta.5",
32
- "@nx/js": "22.1.0-beta.5",
33
- "@nx/eslint": "22.1.0-beta.5",
34
- "@nx/react": "22.1.0-beta.5",
30
+ "@nx/devkit": "22.1.0-beta.6",
31
+ "@nx/jest": "22.1.0-beta.6",
32
+ "@nx/js": "22.1.0-beta.6",
33
+ "@nx/eslint": "22.1.0-beta.6",
34
+ "@nx/react": "22.1.0-beta.6",
35
35
  "tslib": "^2.3.0"
36
36
  },
37
37
  "devDependencies": {
38
- "nx": "22.1.0-beta.5"
38
+ "nx": "22.1.0-beta.6"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "detox": "^20.9.0"
@@ -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) {