Skip to content

refactor: share script test directory cleanup - #4635

Merged
vincentkoc merged 1 commit into
mainfrom
refactor-tooling-helpers-20261114
Nov 14, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
refactor-tooling-helpers-20261114

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Temporary-directory setup and cleanup is repeated across script test suites.

User Impact

No user-visible change. Test fixtures retain their directory prefixes, mock-reset order, and recursive cleanup.

Why This Change Was Made

Use one test-only directory tracker across 18 suites, including explicit registration of preserved worker workspaces. Keep permission-repair cleanup separate. Removes 49 net lines.

Evidence

  • Baseline and candidate: 570 tests across the 18 touched suites.
  • All 2,180 assertion syntax trees match after normalizing calls to the directory helper.
  • Real filesystem checks cover prefixes, nested files, explicitly tracked directories, missing paths, independent trackers, repeated cleanup, and reuse.
  • bun run ci:static: clean; bun run ci:unit: 9,657 passed, six skipped; schema and CLI TypeScript checks passed.
  • Independent review through P3.

AI-assisted; independently reviewed and validated as described above.

@clawsweeper

clawsweeper Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@vercel

vercel Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
clawhub Ready Ready Preview Nov 14, 2026 1:19am UTC

Request Review

@vincentkoc
vincentkoc marked this pull request as ready for review November 14, 2026 01:18
@vincentkoc
vincentkoc merged commit 44d62a2 into main Nov 14, 2026
34 checks passed
@vincentkoc
vincentkoc deleted the refactor-tooling-helpers-20261114 branch November 14, 2026 01:26

This branch was successfully deployed

1 active deployment
Preview – clawhub — f16295bc Deployed Nov 14, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant