Skip to content

Commit

Permalink
???
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Sep 11, 2023
1 parent 0a90c06 commit 5fb6a9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/jest-config/src/normalize.ts
Expand Up @@ -329,7 +329,7 @@ const normalizeRootDir = (
` Configuration option ${chalk.bold('rootDir')} must be specified.`,
);
}
options.rootDir = path.normalize(options.rootDir);
options.rootDir = path.posix.normalize(options.rootDir);

try {
// try to resolve windows short paths, ignoring errors (permission errors, mostly)
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-config/src/utils.ts
Expand Up @@ -64,7 +64,7 @@ export const replaceRootDirInPath = (

return path.resolve(
rootDir,
path.normalize(`./${filePath.substring('<rootDir>'.length)}`),
path.posix.normalize(`./${filePath.substring('<rootDir>'.length)}`),
);
};

Expand Down

0 comments on commit 5fb6a9f

Please sign in to comment.