Skip to content

Commit

Permalink
fix(jest-resolve): Remove redundant realpath call (#14053)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Silbermann authored Apr 8, 2023
1 parent 470d72e commit 279f97c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/jest-resolve/src/defaultResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@ const defaultResolver: SyncResolver = (path, options) => {

const pathToResolve = getPathInModule(path, resolveOptions);

// resolveSync dereferences symlinks to ensure we don't create a separate
// module instance depending on how it was referenced.
const result = resolveSync(pathToResolve, resolveOptions);

// Dereference symlinks to ensure we don't create a separate
// module instance depending on how it was referenced.
return realpathSync(result);
return result;
};

export default defaultResolver;
Expand Down

0 comments on commit 279f97c

Please sign in to comment.