mirror of
https://github.com/tw93/Mole.git
synced 2026-02-04 18:34:46 +00:00
fix: source common utilities in purge tests and remove temporary clean list artifact
This commit is contained in:
@@ -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
|
||||
"
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user