@walkeros/config 1.0.1 → 1.0.2-next-1769158278557
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 +5 -2
- package/package.json +1 -1
package/jest/index.mjs
CHANGED
|
@@ -92,7 +92,7 @@ const config = {
|
|
|
92
92
|
testMatch: ['<rootDir>/**/*.test.(ts|tsx|js|jsx)'],
|
|
93
93
|
moduleFileExtensions: ['js', 'ts', 'tsx', 'mjs', 'json'],
|
|
94
94
|
rootDir: '.',
|
|
95
|
-
moduleDirectories: ['node_modules', 'src'],
|
|
95
|
+
moduleDirectories: ['node_modules', 'src', path.join(packagesDir, 'node_modules')],
|
|
96
96
|
extensionsToTreatAsEsm: ['.ts', '.tsx'],
|
|
97
97
|
moduleNameMapper: getModuleMapper(),
|
|
98
98
|
globals: getGlobals(),
|
|
@@ -105,13 +105,16 @@ const config = {
|
|
|
105
105
|
restoreMocks: true,
|
|
106
106
|
detectOpenHandles: true,
|
|
107
107
|
|
|
108
|
+
// Exclude from module resolution (prevents Haste collisions with cached packages)
|
|
109
|
+
modulePathIgnorePatterns: ['<rootDir>/.tmp', '/dist/'],
|
|
110
|
+
|
|
108
111
|
// Enhanced ignore patterns
|
|
109
112
|
testPathIgnorePatterns: [
|
|
110
113
|
'/node_modules/',
|
|
111
114
|
'/dist/',
|
|
112
115
|
'/build/',
|
|
113
116
|
'/coverage/',
|
|
114
|
-
'.tmp'
|
|
117
|
+
'.tmp',
|
|
115
118
|
],
|
|
116
119
|
};
|
|
117
120
|
|
package/package.json
CHANGED