test: add tests for invalid symlink
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
If the symlink is invalid (target file or dir not exists), calling fs.existsSync()
should return false
.
There are some issues at Windows currently(#30538 (closed)), so win32
platform is excluded temporarily. This condition could be removed after the issue fixed.
Seems this behavior is not mentioned explicitly in the documentation. If it is not as expected please correct me