feat: improve testing infrastructure and CI workflow#1
Merged
Conversation
…documentation Fixed all 7 failing tests by correcting import patterns and test assertions. Enhanced Makefile with comprehensive test commands (test, test-watch, test-coverage, test-file, lint, lint-fix). Created TESTING.md with detailed testing guide including framework overview, command reference, patterns, and best practices. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Replaced basic CI workflow with improved version featuring: - Dependency caching via actions/setup-node for faster runs - Test execution with coverage reporting (--coverage flag) - Coverage artifact upload with 30-day retention - Tested locally with act to verify workflow correctness All 13 tests pass with coverage metrics generated successfully. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR enhances the testing infrastructure and CI pipeline with comprehensive improvements:
Test Infrastructure (d0c03b7)
make test- Run tests in watch modemake test-coverage- Generate coverage reportsmake test-file FILE=path- Run specific test filemake lint/make lint-fix- Code quality checksCI Workflow Improvements (5d3c6fc)
actions/setup-nodefor faster runs--coverageflagactto verify workflow correctnessTest Results
Files Changed
.github/workflows/ci.yml- New comprehensive CI workflowMakefile- Enhanced with testing commandsTESTING.md- Complete testing documentationsrc/utils/__tests__/retry-with-fallback.test.js- Fixed test assertionssrc/utils/provider-manager.js- Minor test-related improvements🤖 Generated with Claude Code