adds Clean Copy Support

This commit is contained in:
2026-10-12 09:43:57 +02:00
parent 188e078055
commit 281f5465a6
28 changed files with 579 additions and 120 deletions
@@ -43,6 +43,18 @@ private final class EventLog: @unchecked Sendable {
#expect(log.count(.git) == 0)
}
@Test func theCleanCopyFileFiresItsOwnEventNextToTheProjectEvent() async throws {
let dir = try TempDirectory()
let (watcher, log) = await watch(dir.root)
defer { watcher.stop() }
try dir.write("notes/.clean-copy", "elsewhere")
await settle()
#expect(log.count(.cleanCopy) == 0)
try dir.write(CleanCopy.fileName, "copy me")
#expect(await eventually { log.count(.cleanCopy) >= 1 })
#expect(await eventually { log.count(.project) >= 1 })
}
@Test func changesInsideIgnoredFoldersAreDropped() async throws {
let dir = try TempDirectory()
try dir.mkdir("node_modules/pkg")