forked from claude-did-this/claude-hub
* fix: Fix Claude integration tests by ensuring provider registration
The Claude webhook integration tests were failing because the provider
wasn't being registered before the routes were imported. This was due
to the conditional check that skips provider initialization in test mode.
Changes:
- Move environment variable setup before any imports
- Import Claude provider before importing webhook routes
- Remove duplicate provider registration from beforeAll hook
This ensures the Claude provider is properly registered with the webhook
registry before the tests run.
* fix: Add comprehensive test suite to PR checks
- Replace test:unit with test:ci to run full test suite (unit + integration)
- Add format:check for Prettier validation
- Add typecheck for TypeScript compilation checks
- Add codecov upload for PR coverage reporting
- Add TruffleHog secret scanning for PR changes
This ensures PRs catch all issues that would fail on main branch,
preventing post-merge failures.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* test: Remove obsolete Claude integration tests
These tests were for the deprecated /api/webhooks/claude endpoint
that was removed in commit dd5e6e6. The functionality is now covered
by unit tests for the new webhook provider architecture:
- ClaudeWebhookProvider.test.ts
- SessionHandler.test.ts
- OrchestrationHandler.test.ts
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>