Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

Give the build artifacts command test a folder of its own

Țugui Dragoșe450f51fef3e
diff --git a/Packages/PeelCore/Tests/PeelCoreTests/FileCommandTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/FileCommandTests.swift
index 5a1ee94f..2cd5ca63 100644
--- a/Packages/PeelCore/Tests/PeelCoreTests/FileCommandTests.swift
+++ b/Packages/PeelCore/Tests/PeelCoreTests/FileCommandTests.swift
@@ -158,7 +158,8 @@ struct FileCommandTests {
let stale = try artifact("DerivedData", lastActivity: .now.addingTimeInterval(-ProjectArtifacts.recentlyActive * 2))
let fresh = try artifact("build", lastActivity: .now)
- try await (command(["projects", "~/Developer", "--remove", "-y"]) as ProjectsCommand)
+ let developer = project.deletingLastPathComponent().path(percentEncoded: false)
+ try await (command(["projects", developer, "--remove", "-y"]) as ProjectsCommand)
.clean(
[stale, fresh],
using: try service(in: directory),