mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
test: fix test-require-symlink on Windows
Creating directory symlinks on Windows require 'dir' parameter to be provided. Fixes: https://github.com/nodejs/node/issues/23596 PR-URL: https://github.com/nodejs/node/pull/23691 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
committed by
Rod Vagg
parent
ac91346776
commit
e7a573a9e2
@@ -58,7 +58,7 @@ const linkScriptTarget = path.join(dirName, 'symlinked.js');
|
||||
test();
|
||||
|
||||
function test() {
|
||||
fs.symlinkSync(linkTarget, linkDir);
|
||||
fs.symlinkSync(linkTarget, linkDir, 'dir');
|
||||
fs.symlinkSync(linkScriptTarget, linkScript);
|
||||
|
||||
// load symlinked-module
|
||||
|
||||
Reference in New Issue
Block a user