Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e08372 commit 8dc323aCopy full SHA for 8dc323a
packages/jest-config/src/normalize.ts
@@ -329,7 +329,7 @@ const normalizeRootDir = (
329
` Configuration option ${chalk.bold('rootDir')} must be specified.`,
330
);
331
}
332
- options.rootDir = path.normalize(options.rootDir);
+ options.rootDir = path.posix.normalize(options.rootDir);
333
334
try {
335
// try to resolve windows short paths, ignoring errors (permission errors, mostly)
packages/jest-config/src/utils.ts
@@ -64,7 +64,7 @@ export const replaceRootDirInPath = (
64
65
return path.resolve(
66
rootDir,
67
- path.normalize(`./${filePath.substring('<rootDir>'.length)}`),
+ path.posix.normalize(`./${filePath.substring('<rootDir>'.length)}`),
68
69
};
70
0 commit comments