Skip to content

test(cli): isolate analyze controller storage - #907

Merged
nc9 merged 5 commits into
squirrelscan:mainfrom
WilliamK112:codex/analyze-test-temp-home-893
Oct 17, 2026
Merged

nc9 merged 5 commits into
squirrelscan:mainfrom
WilliamK112:codex/analyze-test-temp-home-893

Conversation

@WilliamK112

Copy link
Copy Markdown
Contributor

Summary

  • redirect analyze controller tests to the shared scratch Squirrel home
  • prevent invalid crawl ID tests from scanning a developer's real project databases
  • extend the home-isolation guard to cover future runAnalyze calls

Testing

  • bun test apps/cli/tests/controllers/analyze.test.ts apps/cli/tests/squirrel-home-guard.test.ts (9 passed; 2.77 s wall clock)
  • oxfmt ... --check
  • oxlint ...
  • bun run typecheck from apps/cli

Closes #893

@nc9
nc9 merged commit 06f5e30 into squirrelscan:main Oct 17, 2026
15 checks passed
@nc9

nc9 commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Merged. Thanks @WilliamK112, tidy test-only fix with a guard that keeps the next call honest.

@nc9

nc9 commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Thanks @WilliamK112! The squirrel analyze controller tests now run against a scratch home, so they never go poking around in a developer's real project databases. Nice cleanup.

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.

test(cli): analyze.test.ts reads the real ~/.squirrel and hangs on a machine with many projects

2 participants