Skip to content

Commit 2376abc

Browse files
committed
Apply files symlink relative to dirname
1 parent eec5b17 commit 2376abc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/harness/vfs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@ namespace vfs {
911911
if (this.stringComparer(vpath.dirname(path), path) === 0) {
912912
throw new TypeError("Roots cannot be symbolic links.");
913913
}
914-
this.symlinkSync(this._resolve(entry.symlink), path);
914+
this.symlinkSync(vpath.resolve(dirname, entry.symlink), path);
915915
this._applyFileExtendedOptions(path, entry);
916916
}
917917
else if (entry instanceof Link) {

0 commit comments

Comments
 (0)