@ttoss/config 1.32.8 → 1.32.10

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/dist/esm/index.js CHANGED
@@ -92,6 +92,7 @@ var defaultConfig3 = {
92
92
  advanceTimers: true,
93
93
  enableGlobally: true
94
94
  },
95
+ moduleDirectories: ["node_modules", "<rootDir>/../.."],
95
96
  moduleNameMapper: {
96
97
  /**
97
98
  * Remove CSS import errors:
@@ -111,11 +112,6 @@ var jestE2EConfig = configCreator({
111
112
  ...defaultConfig3,
112
113
  collectCoverage: false,
113
114
  displayName: "E2E Tests",
114
- moduleNameMapper: {
115
- ...defaultConfig3.moduleNameMapper,
116
- "src/(.*)": "<rootDir>/../../src/$1",
117
- "tests/(.*)": "<rootDir>/../$1"
118
- },
119
115
  roots: ["<rootDir>"]
120
116
  });
121
117
  var jestUnitConfig = configCreator({
@@ -123,11 +119,6 @@ var jestUnitConfig = configCreator({
123
119
  displayName: "Unit Tests",
124
120
  collectCoverage: true,
125
121
  collectCoverageFrom: ["<rootDir>/../../src/**/*.{ts,tsx,js,jsx}", "!<rootDir>/../../src/**/*.d.ts"],
126
- moduleNameMapper: {
127
- ...defaultConfig3.moduleNameMapper,
128
- "src/(.*)": "<rootDir>/../../src/$1",
129
- "tests/(.*)": "<rootDir>/../$1"
130
- },
131
122
  roots: ["<rootDir>"]
132
123
  });
133
124
 
package/dist/index.js CHANGED
@@ -136,6 +136,7 @@ var defaultConfig3 = {
136
136
  advanceTimers: true,
137
137
  enableGlobally: true
138
138
  },
139
+ moduleDirectories: ["node_modules", "<rootDir>/../.."],
139
140
  moduleNameMapper: {
140
141
  /**
141
142
  * Remove CSS import errors:
@@ -155,11 +156,6 @@ var jestE2EConfig = configCreator({
155
156
  ...defaultConfig3,
156
157
  collectCoverage: false,
157
158
  displayName: "E2E Tests",
158
- moduleNameMapper: {
159
- ...defaultConfig3.moduleNameMapper,
160
- "src/(.*)": "<rootDir>/../../src/$1",
161
- "tests/(.*)": "<rootDir>/../$1"
162
- },
163
159
  roots: ["<rootDir>"]
164
160
  });
165
161
  var jestUnitConfig = configCreator({
@@ -167,11 +163,6 @@ var jestUnitConfig = configCreator({
167
163
  displayName: "Unit Tests",
168
164
  collectCoverage: true,
169
165
  collectCoverageFrom: ["<rootDir>/../../src/**/*.{ts,tsx,js,jsx}", "!<rootDir>/../../src/**/*.d.ts"],
170
- moduleNameMapper: {
171
- ...defaultConfig3.moduleNameMapper,
172
- "src/(.*)": "<rootDir>/../../src/$1",
173
- "tests/(.*)": "<rootDir>/../$1"
174
- },
175
166
  roots: ["<rootDir>"]
176
167
  });
177
168
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/config",
3
- "version": "1.32.8",
3
+ "version": "1.32.10",
4
4
  "description": "Default configuration for packages.",
5
5
  "author": "ttoss",
6
6
  "contributors": [
@@ -37,11 +37,11 @@
37
37
  },
38
38
  "devDependencies": {
39
39
  "@jest/types": "^29.6.3",
40
- "@types/jest": "^29.5.12",
40
+ "@types/jest": "^29.5.13",
41
41
  "@types/node": "^20.16.1",
42
42
  "esbuild": "^0.23.1",
43
43
  "jest": "^29.7.0",
44
- "tsup": "^8.2.4"
44
+ "tsup": "^8.3.0"
45
45
  },
46
46
  "keywords": [],
47
47
  "publishConfig": {
package/src/jest.ts CHANGED
@@ -18,6 +18,7 @@ export const defaultConfig: Config = {
18
18
  advanceTimers: true,
19
19
  enableGlobally: true,
20
20
  },
21
+ moduleDirectories: ['node_modules', '<rootDir>/../..'],
21
22
  moduleNameMapper: {
22
23
  /**
23
24
  * Remove CSS import errors:
@@ -42,11 +43,6 @@ export const jestE2EConfig = configCreator<any>({
42
43
  ...defaultConfig,
43
44
  collectCoverage: false,
44
45
  displayName: 'E2E Tests',
45
- moduleNameMapper: {
46
- ...defaultConfig.moduleNameMapper,
47
- 'src/(.*)': '<rootDir>/../../src/$1',
48
- 'tests/(.*)': '<rootDir>/../$1',
49
- },
50
46
  roots: ['<rootDir>'],
51
47
  });
52
48
 
@@ -59,10 +55,5 @@ export const jestUnitConfig = configCreator<any>({
59
55
  '<rootDir>/../../src/**/*.{ts,tsx,js,jsx}',
60
56
  '!<rootDir>/../../src/**/*.d.ts',
61
57
  ],
62
- moduleNameMapper: {
63
- ...defaultConfig.moduleNameMapper,
64
- 'src/(.*)': '<rootDir>/../../src/$1',
65
- 'tests/(.*)': '<rootDir>/../$1',
66
- },
67
58
  roots: ['<rootDir>'],
68
59
  });