adds Clean Copy Support
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user