test: increase test coverage for readfile with withFileTypes option
According to the test coverage report a test case was missings checking if an error is passed into the callback for readdir calls with withFileTypes option.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines