1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-16 14:43:39 +00:00

fix: source common utilities in purge tests and remove temporary clean list artifact

This commit is contained in:
Tw93
2025-12-26 14:36:56 +08:00
parent 27f57bd361
commit 72ec18ad8c
2 changed files with 2 additions and 13 deletions

View File

@@ -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
"