mirror of
https://github.com/davila7/claude-code-templates.git
synced 2026-09-19 01:30:23 +08:00
41cbbea00c
- Split components.json: índice sin content (1.9 MB / 249 KB br vs 15.6 MB / 4.15 MB br).
Generador produce component-content/{type}/{slug}.json por componente y auto-copia
a dashboard/public/. Página de detalle carga contenido on-demand via fetchComponentContent().
- Restaurar cabeceras de caché y seguridad perdidas en la migración Vercel→Cloudflare:
_headers con Cache-Control max-age=86400 para JSONs, immutable para _astro/*,
y HSTS, X-Frame-Options, Referrer-Policy, Permissions-Policy en todas las rutas.
- Eliminar dashboard/vercel.json (config muerta desde migración a Cloudflare Pages).
- Diferir hidratación: ClerkIsland y AuthButton client:load → client:idle;
SaveToCollectionButton → client:visible.
- Eliminar gpt-tokenizer del bundle del navegador: reemplazado por estimación chars/4.
- Actualizar .claude/rules/dashboard.md para reflejar hosting en Cloudflare Pages.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 line
2.4 KiB
JSON
1 line
2.4 KiB
JSON
{"content": "---\nallowed-tools: Read, Write, Edit, Bash\nargument-hint: [scope] | --unit | --integration | --e2e | --visual | --performance | --full-stack\ndescription: Setup complete testing infrastructure with framework configuration and CI integration\n---\n\n# Setup Comprehensive Testing\n\nSetup complete testing infrastructure with multi-layer testing strategy: **$ARGUMENTS**\n\n## Current Testing Infrastructure\n\n- Project type: !`[ -f package.json ] && echo \"Node.js\" || [ -f requirements.txt ] && echo \"Python\" || [ -f pom.xml ] && echo \"Java\" || echo \"Multi-language\"`\n- Existing tests: !`find . -name \"*.test.*\" -o -name \"*.spec.*\" | wc -l` test files\n- CI system: !`find . -name \".github\" -o -name \".gitlab-ci.yml\" -o -name \"Jenkinsfile\" | head -1 || echo \"No CI detected\"`\n- Framework: !`grep -l \"jest\\\\|vitest\\\\|pytest\\\\|junit\" package.json requirements.txt pom.xml 2>/dev/null | head -1 || echo \"Detect framework\"`\n\n## Task\n\nImplement comprehensive testing infrastructure with multi-layer testing strategy:\n\n**Setup Scope**: Use $ARGUMENTS to focus on unit, integration, e2e, visual, performance testing, or full-stack implementation\n\n**Comprehensive Testing Framework**:\n\n1. **Testing Strategy Design** - Analyze project requirements, define testing pyramid, plan coverage goals, optimize testing investment\n2. **Unit Testing Setup** - Configure primary framework (Jest, Vitest, pytest), setup test runners, implement test utilities, optimize execution\n3. **Integration Testing** - Setup integration test framework, configure test databases, implement API testing, optimize test isolation\n4. **E2E Testing Configuration** - Setup browser testing (Cypress, Playwright), configure test environments, implement page objects\n5. **Visual & Performance Testing** - Setup visual regression testing, configure performance benchmarks, implement accessibility testing\n6. **CI/CD Integration** - Configure automated test execution, setup parallel testing, implement quality gates, optimize pipeline performance\n\n**Advanced Features**: Contract testing, chaos engineering, load testing, security testing, cross-browser testing, mobile testing.\n\n**Infrastructure Quality**: Test reliability, execution performance, maintainability, scalability, cost optimization.\n\n**Output**: Complete testing infrastructure with configured frameworks, CI integration, quality metrics, and maintenance workflows.\n"} |