Skip to content

Commit 889df8e

Browse files
robertvansteeniansu
authored andcommitted
Fix absolute paths issue in Jest (#7822)
1 parent ab41c4c commit 889df8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-scripts/config/modules.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function getJestAliases(options = {}) {
101101

102102
if (path.relative(paths.appPath, baseUrlResolved) === '') {
103103
return {
104-
'src/(.*)$': '<rootDir>/src/$1',
104+
'^src/(.*)$': '<rootDir>/src/$1',
105105
};
106106
}
107107
}

0 commit comments

Comments
 (0)