Skip to content

Commit

Permalink
Check realpath when change directory to a directory symbolic link
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanduplenskikh committed Dec 25, 2024
1 parent c79f239 commit 42e2c1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/test/cd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ describe('cd cases', () => {
assert.equal(process.cwd(), TEMP_DIR_2_SUBDIR_1);

tl.cd(TEMP_DIR_2_SUBDIR_1_SYMLINK_DIR_1);
assert.equal(process.cwd(), TEMP_DIR_2_SUBDIR_1_SYMLINK_DIR_1);
assert.equal(fs.realpathSync('.'), TEMP_DIR_1);

assert.equal(process.env.OLDPWD, TEMP_DIR_2_SUBDIR_1);

Expand Down

0 comments on commit 42e2c1b

Please sign in to comment.