@walkeros/config 0.1.1 → 1.0.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/jest/index.mjs +8 -7
- package/package.json +4 -4
- package/tsup/index.mjs +1 -1
package/jest/index.mjs
CHANGED
|
@@ -72,7 +72,7 @@ function getGlobals() {
|
|
|
72
72
|
|
|
73
73
|
const config = {
|
|
74
74
|
transform: {
|
|
75
|
-
'^.+\\.(t|j)sx?$': [
|
|
75
|
+
'^.+\\.(t|j|mj)sx?$': [
|
|
76
76
|
'@swc/jest',
|
|
77
77
|
{
|
|
78
78
|
jsc: {
|
|
@@ -88,19 +88,19 @@ const config = {
|
|
|
88
88
|
},
|
|
89
89
|
],
|
|
90
90
|
},
|
|
91
|
-
transformIgnorePatterns: ['/node_modules/(?!(@
|
|
91
|
+
transformIgnorePatterns: ['/node_modules/(?!(@walkeros)/)'],
|
|
92
92
|
testMatch: ['<rootDir>/**/*.test.(ts|tsx|js|jsx)'],
|
|
93
|
-
moduleFileExtensions: ['js', 'ts', 'tsx', 'mjs'],
|
|
93
|
+
moduleFileExtensions: ['js', 'ts', 'tsx', 'mjs', 'json'],
|
|
94
94
|
rootDir: '.',
|
|
95
95
|
moduleDirectories: ['node_modules', 'src'],
|
|
96
96
|
extensionsToTreatAsEsm: ['.ts', '.tsx'],
|
|
97
97
|
moduleNameMapper: getModuleMapper(),
|
|
98
98
|
globals: getGlobals(),
|
|
99
99
|
|
|
100
|
-
// Performance settings -
|
|
101
|
-
maxWorkers:
|
|
100
|
+
// Performance settings - reduced for devcontainer memory constraints
|
|
101
|
+
maxWorkers: 2,
|
|
102
102
|
testTimeout: 30000,
|
|
103
|
-
forceExit
|
|
103
|
+
// forceExit disabled to allow proper cleanup and detect handle leaks
|
|
104
104
|
clearMocks: true,
|
|
105
105
|
restoreMocks: true,
|
|
106
106
|
detectOpenHandles: true,
|
|
@@ -110,7 +110,8 @@ const config = {
|
|
|
110
110
|
'/node_modules/',
|
|
111
111
|
'/dist/',
|
|
112
112
|
'/build/',
|
|
113
|
-
'/coverage/'
|
|
113
|
+
'/coverage/',
|
|
114
|
+
'.tmp'
|
|
114
115
|
],
|
|
115
116
|
};
|
|
116
117
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@walkeros/config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Shared development configuration for walkerOS packages (TypeScript, ESLint, Jest, tsup)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@swc/core": "^1.11.13",
|
|
30
30
|
"@swc/jest": "^0.2.37",
|
|
31
31
|
"@testing-library/jest-dom": "^6.6.3",
|
|
32
|
-
"@types/jest": "^
|
|
32
|
+
"@types/jest": "^30.0.0",
|
|
33
33
|
"@eslint/js": "^9.23.0",
|
|
34
34
|
"@typescript-eslint/eslint-plugin": "^8.28.0",
|
|
35
35
|
"@typescript-eslint/parser": "^8.28.0",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
42
42
|
"eslint-plugin-turbo": "^2.4.4",
|
|
43
43
|
"globals": "^16.0.0",
|
|
44
|
-
"jest": "^
|
|
45
|
-
"jest-environment-jsdom": "^
|
|
44
|
+
"jest": "^30.2.0",
|
|
45
|
+
"jest-environment-jsdom": "^30.2.0",
|
|
46
46
|
"tsup": "^8.4.0",
|
|
47
47
|
"terser": "^5.39.0",
|
|
48
48
|
"typescript": "^5.8.2"
|