Merge branch 'mergefwd-1-seam' into mergefwd-3-wire

This commit is contained in:
Yichen Jiang
2026-08-09 00:27:40 +08:00
199 changed files with 12103 additions and 1413 deletions

View File

@@ -42,6 +42,14 @@ class TestFileSystem extends FileSystem {
return { targetKey: path as never, displayPath: path }
}
override processPath(target: FsTarget): string { return String(target.targetKey) }
override fileUrl(target: FsTarget): string { return `file://${target.targetKey}` }
override contains(parent: FsTarget, child: FsTarget): boolean {
return child.targetKey === parent.targetKey || String(child.targetKey).startsWith(`${parent.targetKey}/`)
}
override async stat(target: FsTarget, signal?: AbortSignal): Promise<FsInfo | undefined> {
this.statSignals.push(signal)
if (this.failStatPaths.has(target.displayPath)) throw new FsError('stat failed', 'FS_NOT_FOUND')