Skip to content

Commit

Permalink
Fix absolute paths issue in Jest (#7822)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertvansteen authored and iansu committed Oct 14, 2019
1 parent ab41c4c commit 889df8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-scripts/config/modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function getJestAliases(options = {}) {

if (path.relative(paths.appPath, baseUrlResolved) === '') {
return {
'src/(.*)$': '<rootDir>/src/$1',
'^src/(.*)$': '<rootDir>/src/$1',
};
}
}
Expand Down

0 comments on commit 889df8e

Please sign in to comment.