Repository navigation
Conversation
|
@xyrolle any idea why all the tests are failing? |
|
@thecodrr These 19 fail on master too, without this change; on v6.5.0 all 107 pass. They start with two commits after it: |
|
@thecodrr The failing tests are fixed in #172, which brings master's suite back to green (112 passing): a line the errors commit dropped, a missing #172 marks one test as a known failure on POSIX, "crawl all files and invert path separator", because it fails for a real reason: the walker reads the disk through the output path, so a |
|
@thecodrr The walker fix is up in #173: it crawls through native paths and gives only the output the custom separator, so a So the order is #172 (master's tests), then this PR, then #173. |
Fixes #169
With
withSymlinks({ resolvePaths: false }),isRecursivetreated one symlink target as inside another when its path merely started with the other's as a string, so a link to/x/shared-otherinside a link to/x/sharedwas skipped as recursive. It now compares whole path segments (isInside), after normalizing the target, since a customfscan return/on Windows. This keeps the existing rule that equal, ancestor and descendant targets count as recursive; only siblings whose names share a prefix change.Test: a
symlinks.test.tscase withroot/src -> sharedandshared/alias -> shared-other, for bothsyncandwithPromise. It fails without the change.On
master(790c182), 19 tests already fail without this change, and the same 19 fail with it. Applied onv6.5.0, all 107 pass.tsc --noEmit,npm run buildand Prettier pass on the branch. #162 moves these tests offmock-fs; if it lands first, I'll move this case to its fixtures.