Added mkdir -p tests for subdirectories#1026
Conversation
|
Hmm for some reason it looks like the coverage report isn't changing for Lines 30 to 33 in 71085db It looks like appveyor is not reporting coverage info, as Windows-specific code doesn't appear to have coverage. This must be a codecov or appveyor bug though. |
|
Thank you for looking at this PR and for creating this project! I'm not sure on the appveyor/Windows part, but after looking at the code block above, and investigating/logging with Line 69 in 71085db To check this, if I re-write that line on my local branch as Line 32 in 71085db Should I add to this PR (by changing shelljs/src/mkdir.js), or possibly file another issue or PR to increase the test coverage? |
|
I see, thanks for looking into this. Let's land this as-is because it adds useful test coverage. If you can think of a way to de-duplicate the logic, that would be a welcome contribution in a separate PR! Thank you! |
This PR is for #1022, and aims to expand testing for mkdir -p when (1) a sub-directory already exists, and (2) the sub-directory does not exist. Please let me know if you'd like me to change something, and thank you for the opportunity to work on this issue!