From 72ec18ad8c86f164b0828580110109f560aea510 Mon Sep 17 00:00:00 2001 From: Tw93 Date: Fri, 26 Dec 2025 14:36:56 +0800 Subject: [PATCH] fix: source common utilities in purge tests and remove temporary clean list artifact --- tests/purge.bats | 2 ++ .../.config/mole/clean-list.txt | 13 ------------- 2 files changed, 2 insertions(+), 13 deletions(-) delete mode 100644 tests/tmp-clean-home.EmChvN/.config/mole/clean-list.txt diff --git a/tests/purge.bats b/tests/purge.bats index 6283486..a0fe099 100644 --- a/tests/purge.bats +++ b/tests/purge.bats @@ -130,6 +130,7 @@ setup() { touch "$HOME/www/project/package.json" # Recently touched result=$(bash -c " + source '$PROJECT_ROOT/lib/core/common.sh' source '$PROJECT_ROOT/lib/clean/project.sh' if is_recently_modified '$HOME/www/project/node_modules'; then echo 'RECENT' @@ -148,6 +149,7 @@ setup() { # Note: This is hard to test reliably without mocking 'find' # Just verify the function can run without errors bash -c " + source '$PROJECT_ROOT/lib/core/common.sh' source '$PROJECT_ROOT/lib/clean/project.sh' is_recently_modified '$HOME/www/old-project/node_modules' || true " diff --git a/tests/tmp-clean-home.EmChvN/.config/mole/clean-list.txt b/tests/tmp-clean-home.EmChvN/.config/mole/clean-list.txt deleted file mode 100644 index e8a8f21..0000000 --- a/tests/tmp-clean-home.EmChvN/.config/mole/clean-list.txt +++ /dev/null @@ -1,13 +0,0 @@ -# Mole Cleanup Preview - 2025-12-18 17:01:44 -# -# How to protect files: -# 1. Copy any path below to ~/.config/mole/whitelist -# 2. Run: mo clean --whitelist -# -# Example: -# /Users/*/Library/Caches/com.example.app -# - - -=== User essentials === -/Users/tw93/www/Mole/tests/tmp-clean-home.EmChvN/Library/Caches/TestApp # 4KB