Tom Spencer
|
2ffe66b87c
|
Add comprehensive test suite for AI Quickstart feature
Test Setup:
- Install vitest and @vitest/coverage-v8
- Configure vitest with path aliases and coverage reporting
- Add npm scripts: test, test:run, test:coverage
Test Coverage (108 tests total):
- templates.test.ts (33 tests): Preset templates, content levels, workflows
- validation.test.ts (51 tests): JSON validation, repair, parsing
- prompts.test.ts (24 tests): Prompt generation for all content levels
Coverage Results:
- Overall: 90.2% statements, 91% lines
- prompts.ts: 100%
- templates.ts: 96%
- validation.ts: 89%
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
6 months ago |