From 0bed4d3e5153aaf2e06fb6579ac6f24acf63567f Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Sat, 9 Mar 2024 09:07:29 +0530 Subject: fix(ext/node): support junction symlinks on Windows (#22762) Fixes https://github.com/denoland/deno/issues/20609 Vitepress support! `vitepress dev` and `vitepress build` via BYONM --- tests/unit_node/_fs/_fs_symlink_test.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'tests') diff --git a/tests/unit_node/_fs/_fs_symlink_test.ts b/tests/unit_node/_fs/_fs_symlink_test.ts index 68ed1014a..98cf51460 100644 --- a/tests/unit_node/_fs/_fs_symlink_test.ts +++ b/tests/unit_node/_fs/_fs_symlink_test.ts @@ -105,3 +105,20 @@ Deno.test({ } }, }); + +Deno.test({ + name: "SYNC: symlink junction", + fn() { + const dir: string = Deno.makeTempDirSync(); + const linkedDir: string = dir + "-junction"; + + try { + symlinkSync(dir, linkedDir, "junction"); + const stat = Deno.lstatSync(linkedDir); + assert(stat.isSymlink); + } finally { + Deno.removeSync(dir); + Deno.removeSync(linkedDir); + } + }, +}); -- cgit v1.2.3