File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
packages/jest-resolve/src Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 4040
4141- ` [jest-runtime] ` Fix module registry memory leak ([ #8282 ] ( https://github.com/facebook/jest/pull/8282 ) )
4242- ` [jest-resolve] ` optimize resolve module path ([ #8388 ] ( https://github.com/facebook/jest/pull/8388 ) )
43+ - ` [jest-resolve] ` cache current directory ([ #8412 ] ( https://github.com/facebook/jest/pull/8412 ) )
4344
4445## 24.7.1
4546
Original file line number Diff line number Diff line change @@ -188,6 +188,7 @@ function isDirectory(dir: Config.Path): boolean {
188188 return statSyncCached ( dir ) === IPathType . DIRECTORY ;
189189}
190190
191+ const CURRENT_DIRECTORY = path . resolve ( '.' ) ;
191192function isCurrentDirectory ( testPath : Config . Path ) : boolean {
192- return path . resolve ( '.' ) === path . resolve ( testPath ) ;
193+ return CURRENT_DIRECTORY === path . resolve ( testPath ) ;
193194}
You can’t perform that action at this time.
0 commit comments