Skip to content

Commit

Permalink
chore: fix symlink creation failures on windows in tests (#9852)
Browse files Browse the repository at this point in the history
  • Loading branch information
dubzzz committed Apr 21, 2020
1 parent 542959c commit fa4cbbf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion e2e/Utils.ts
Expand Up @@ -48,7 +48,7 @@ export const linkJestPackage = (packageName: string, cwd: Config.Path) => {
const destination = path.resolve(cwd, 'node_modules/', packageName);
makeDir.sync(destination);
rimraf.sync(destination);
fs.symlinkSync(packagePath, destination, 'dir');
fs.symlinkSync(packagePath, destination, 'junction');
};

export const makeTemplate = (
Expand Down Expand Up @@ -106,6 +106,7 @@ export const writeSymlinks = (
fs.symlinkSync(
path.resolve(directory, ...fileOrPath.split('/')),
path.resolve(directory, ...symLinkPath.split('/')),
'junction',
);
});
};
Expand Down

0 comments on commit fa4cbbf

Please sign in to comment.