Files
Daniel Avila 441940264e Feat/improve startup and framework structure (#22)
* feat: Enhanced analytics dashboard with custom tool modals

- Implemented custom modals for all Claude Code tools (Read, Edit, Write, Bash, Glob, Grep, TodoWrite)
- Added intelligent diff viewer for Edit tool with dual modes (By Lines vs Smart Diff)
- Enhanced tool parameter visualization with project-specific insights
- Improved modal consistency with unified design patterns
- Added comprehensive CSS styling for all tool modals
- Fixed modal functionality and error handling across all tools

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* feat: improve startup screen and fix framework structure

- Redesign compact ASCII art for better terminal usage
- Add version info and documentation links to startup screen
- Fix frameworks → examples directory structure consistency
- Update all code references to use examples/ instead of frameworks/
- Fix Jest configuration typo (moduleNameMapping → moduleNameMapper)
- Add new agents.js module for agent management

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* chore: bump version to 1.12.1 for release

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-07-28 15:45:14 -05:00

84 lines
1.7 KiB
JavaScript

/**
* Jest Configuration for Claude Code Templates Analytics
* Phase 4: Testing & Optimization
*/
module.exports = {
// Test environment
testEnvironment: 'node',
// Test file patterns
testMatch: [
'**/tests/**/*.test.js',
'**/tests/**/*.spec.js',
'**/__tests__/**/*.js'
],
// Coverage configuration
collectCoverage: true,
coverageDirectory: 'coverage',
coverageReporters: ['text', 'lcov', 'html'],
collectCoverageFrom: [
'src/analytics/**/*.js',
'src/analytics-web/**/*.js',
'!src/analytics.log',
'!src/analytics-web/index.html*',
'!**/node_modules/**',
'!**/coverage/**'
],
// Coverage thresholds
coverageThreshold: {
global: {
branches: 70,
functions: 70,
lines: 70,
statements: 70
},
'./src/analytics/core/': {
branches: 80,
functions: 80,
lines: 80,
statements: 80
}
},
// Setup files
setupFilesAfterEnv: ['<rootDir>/tests/setup.js'],
// Module paths
roots: ['<rootDir>/src', '<rootDir>/tests'],
// Transform files
transform: {},
// Test timeout
testTimeout: 10000,
// Verbose output
verbose: true,
// Clear mocks between tests
clearMocks: true,
// Restore mocks after each test
restoreMocks: true,
// Module name mapping for frontend tests
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/analytics-web/$1',
'^@analytics/(.*)$': '<rootDir>/src/analytics/$1'
},
// Ignore patterns
testPathIgnorePatterns: [
'/node_modules/',
'/coverage/',
'/dist/'
],
// Watch plugins
watchPlugins: [
'jest-watch-typeahead/filename',
'jest-watch-typeahead/testname'
]
};