| โฆ | โฆ | @@ -0,0 +1,23 @@ | |
| 18 | + | } catch { | |
| 19 | + | return false; | |
| 20 | + | } finally { | |
| 21 | + | if (directory !== undefined) NodeFS.rmSync(directory, { recursive: true, force: true }); | |
๐ก Medium testing/symlinks.ts:21
A cleanup error from rmSync escapes the probe and makes importing this helper throw instead of returning false or true, so every importing test fails during module initialization when Windows temporarily reports EPERM or EBUSY. Catch cleanup failures so they cannot override the probe result.
No longer relevant as of 8b79a693fbb1e76f4ffa6256b03e21162dabedf1
Good call โ a failed cleanup shouldn't decide the probe. Caught and ignored now.
I still see rmSync called without a nested try/catch, so a cleanup error can still escape the probe.