-
-
Couldn't load subscription status.
- Fork 6
Open
Labels
P2Standard Priority - Next MilestoneStandard Priority - Next MilestoneenhancementNew feature or requestNew feature or requestjavascript-parserJavaScript/TypeScript parser related issuesJavaScript/TypeScript parser related issuestestingTesting infrastructure and test coverageTesting infrastructure and test coverage
Description
Problem Statement
Create comprehensive moth test configurations for the 3 JavaScript-specific analysis tools that were initially missed in the 20-tool inventory but are part of the complete 26-tool set in codeprism-mcp-server.
Tools to Configure
JavaScript-Specific Analysis Tools (3 tools)
- analyze_javascript_frameworks - Framework detection and analysis
- analyze_react_components - React component structure analysis
- analyze_nodejs_patterns - Node.js specific pattern detection
Scope
Test Coverage Required
- JavaScript Test Project: 3/3 tools applicable (100%)
- Python Sample: 0/3 tools applicable (JavaScript-specific)
- Rust Project: 0/3 tools applicable (JavaScript-specific)
- Java Project: 0/3 tools applicable (JavaScript-specific)
Deliverables
-
Moth YAML Configurations
- Individual test configs for each of the 3 JavaScript tools
- Test cases covering React 18.2.0 + Redux setup
- NPM dependency analysis validation
- ES6 module pattern detection
-
Validation Scripts
- Python validation for complex framework detection results
- Component hierarchy validation for React analysis
- Node.js pattern recognition verification
-
Test Data Preparation
- Expand JavaScript test project if needed for comprehensive coverage
- Add missing framework examples (Angular, Vue) if tools support them
- Create edge cases for malformed/incomplete JS projects
Expected Outputs
analyze_javascript_frameworks
- Framework detection (React, Angular, Vue, Node.js)
- Version identification and compatibility analysis
- Build tool detection (Webpack, Vite, Rollup)
- Package manager analysis (npm, yarn, pnpm)
analyze_react_components
- Component hierarchy and relationships
- Props and state usage patterns
- Hook usage analysis
- Performance anti-pattern detection
analyze_nodejs_patterns
- Module system usage (CommonJS vs ES6)
- Async/await vs Promise patterns
- Express.js route analysis
- Security vulnerability patterns
Performance Targets
- Response time: <10 seconds for JavaScript analysis tools
- Memory usage: <300MB during analysis
- Success rate: 99%+ on well-formed JavaScript projects
Validation Requirements
- JSONPath validation for standard fields
- Python scripts for complex validation (framework versions, component trees)
- Error handling for malformed package.json files
- Edge case testing (missing dependencies, circular imports)
Dependencies
- Requires JavaScript test project analysis completion
- Depends on basic moth framework being operational
- Needs codeprism-mcp-server tool inventory verification for these 3 tools
Acceptance Criteria
- All 3 JavaScript tools have moth YAML configurations
- Validation scripts handle complex analysis outputs
- Test coverage demonstrates tool functionality on real JavaScript projects
- Performance targets met
- Error conditions properly handled and tested
Timeline
- Week 4: JavaScript-specific tool configurations
- Integration: Feeds into comprehensive JavaScript project testing (Week 7)
This issue addresses the gap discovered when tool count was corrected from 20 to 26 total tools.
Metadata
Metadata
Assignees
Labels
P2Standard Priority - Next MilestoneStandard Priority - Next MilestoneenhancementNew feature or requestNew feature or requestjavascript-parserJavaScript/TypeScript parser related issuesJavaScript/TypeScript parser related issuestestingTesting infrastructure and test coverageTesting infrastructure and test coverage