test(windows): align platform coverage ignores

This commit is contained in:
imccyu
2026-07-18 15:55:37 +08:00
parent f62cc439e9
commit 7d28b611b2
4 changed files with 7 additions and 2 deletions

View File

@@ -395,6 +395,7 @@ export class SessionPersistenceJsonl extends SessionPersistence implements Persi
// than letting load or collision checks proceed under false absence.
// Windows reports ENOENT, not ENOTDIR, for `regular-file/child`; verify
// the immediate parent so a blocked cwd bucket remains a storage fault.
/* v8 ignore else -- Windows reports file-valued parents as ENOENT; POSIX covers direct ENOTDIR. */
if (isENOENT(error)) {
await this.assertLogParentAllowsAbsence(path)
return false