@walkeros/config 0.1.3 → 1.0.1
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 +6 -5
- package/jest/web.config.mjs +3 -0
- package/package.json +4 -4
- package/tsup/index.mjs +1 -1
package/jest/index.mjs
CHANGED
|
@@ -90,17 +90,17 @@ const config = {
|
|
|
90
90
|
},
|
|
91
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/jest/web.config.mjs
CHANGED
|
@@ -3,6 +3,9 @@ import baseConfig from '@walkeros/config/jest';
|
|
|
3
3
|
const config = {
|
|
4
4
|
setupFilesAfterEnv: ['@walkeros/config/jest/web.setup'],
|
|
5
5
|
testEnvironment: 'jsdom',
|
|
6
|
+
testEnvironmentOptions: {
|
|
7
|
+
url: 'https://example.com',
|
|
8
|
+
},
|
|
6
9
|
};
|
|
7
10
|
|
|
8
11
|
export default { ...baseConfig, ...config };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@walkeros/config",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "1.0.1",
|
|
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"
|