Skip to content

Refactor test suite into domain-specific files - #19

Merged
brianlovin merged 1 commit into
mainfrom
brianlovin/ai-tldr-feature
Jan 26, 2026
Merged

Refactor test suite into domain-specific files#19
brianlovin merged 1 commit into
mainfrom
brianlovin/ai-tldr-feature

Conversation

@brianlovin

Copy link
Copy Markdown
Owner

Summary

Split 2100-line monolithic test file into focused test suites organized by domain (settings, config, TLDR, keyboard routing, chat mode, etc.). Created shared test-utils.ts with createAppTestContext() helper to reduce boilerplate setup.

Benefits

  • Focused context for AI coding - load only relevant tests
  • Faster navigation when modifying specific features
  • Better test isolation and organization
  • Shared setup reduces duplication across suites

Testing

All 78 tests pass across 8 files (app.test.ts, config.test.ts, settings.test.ts, etc). Typecheck passes.

🤖 Generated with Claude Code

Split 2100-line monolithic app.test.ts into focused test files for better context management and isolation. Created shared test-utils.ts with createAppTestContext helper to reduce setup boilerplate across tests. All 78 tests pass.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@brianlovin
brianlovin merged commit 5adf56c into main Jan 26, 2026
1 check passed
@brianlovin
brianlovin deleted the brianlovin/ai-tldr-feature branch January 26, 2026 07:46
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