Fix absolute paths issue in Jest (#7822)

This commit is contained in:
Robert van Steen
2019-10-14 03:59:41 +02:00
committed by Ian Sutherland
parent ab41c4c5c5
commit 889df8e65b

View File

@@ -101,7 +101,7 @@ function getJestAliases(options = {}) {
if (path.relative(paths.appPath, baseUrlResolved) === '') {
return {
'src/(.*)$': '<rootDir>/src/$1',
'^src/(.*)$': '<rootDir>/src/$1',
};
}
}