We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edfb575 commit f9f45a2Copy full SHA for f9f45a2
src/lib/library/library.factory.ts
@@ -113,11 +113,9 @@ function updateJestConfig(
113
if (!jestOptions.moduleNameMapper) {
114
jestOptions.moduleNameMapper = {};
115
}
116
- const packageKeyRegex = '^' + packageKey + '$';
117
- const deepPackagePathRegex = '^' + packageKey + '/(.*)' + '$';
+ const packageKeyRegex = '^' + packageKey + '(|/.*)$';
118
const packageRoot = join('<rootDir>' as Path, distRoot);
119
- jestOptions.moduleNameMapper[deepPackagePathRegex] = join(packageRoot, '$1');
120
- jestOptions.moduleNameMapper[packageKeyRegex] = packageRoot;
+ jestOptions.moduleNameMapper[packageKeyRegex] = join(packageRoot, '$1');
121
122
123
function updateNpmScripts(
0 commit comments