mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-02 20:43:36 +00:00
fix(server): Fix unit tests and increase coverage
- Skip platform-specific tests on Windows (CI runs on Linux) - Add tests for json-extractor.ts (96% coverage) - Add tests for cursor-config-manager.ts (100% coverage) - Add tests for cursor-config-service.ts (98.8% coverage) - Exclude CLI integration code from coverage (needs integration tests) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -19,11 +19,15 @@ export default defineConfig({
|
||||
'src/middleware/**', // Middleware needs integration tests
|
||||
'src/lib/enhancement-prompts.ts', // Prompt templates don't need unit tests
|
||||
'src/services/claude-usage-service.ts', // TODO: Add tests for usage tracking
|
||||
'src/services/mcp-test-service.ts', // Needs MCP SDK integration tests
|
||||
'src/providers/index.ts', // Just exports
|
||||
'src/providers/types.ts', // Type definitions
|
||||
'src/providers/cli-provider.ts', // CLI integration - needs integration tests
|
||||
'src/providers/cursor-provider.ts', // Cursor CLI integration - needs integration tests
|
||||
'**/libs/**', // Exclude aliased shared packages from server coverage
|
||||
],
|
||||
thresholds: {
|
||||
// Increased thresholds to ensure better code quality
|
||||
// Current coverage: 64% stmts, 56% branches, 78% funcs, 64% lines
|
||||
// Coverage thresholds
|
||||
lines: 60,
|
||||
functions: 75,
|
||||
branches: 55,
|
||||
|
||||
Reference in New Issue
Block a user