Backend de template-saas - Workspace V2
rckrdmrd
56b03ae509
[TS-BACKEND] test: Add comprehensive analytics module test suite
Add unit tests for analytics module achieving 100% coverage:
- analytics.service.spec.ts: 43 tests covering all 5 public methods
- getUserMetrics: growth rate, retention rate, edge cases
- getBillingMetrics: revenue trends, subscription status, trial detection
- getUsageMetrics: action counts, peak hours, averages
- getSummary: KPIs, growth calculations
- getTrends: date truncation, empty data handling
- analytics.controller.spec.ts: 15 tests for all endpoints
- Period parameter handling (7d, 30d, 90d, 1y)
- Multi-tenant isolation validation
Part of Fase 4: Test coverage improvement (80.89% overall)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-01-16 17:17:54 -06:00 |
|
__mocks__
|
Initial commit - Backend de template-saas migrado desde monorepo
|
2026-01-16 08:07:11 -06:00 |
|
src
|
[TS-BACKEND] test: Add comprehensive analytics module test suite
|
2026-01-16 17:17:54 -06:00 |
|
.dockerignore
|
Initial commit - Backend de template-saas migrado desde monorepo
|
2026-01-16 08:07:11 -06:00 |
|
.env.example
|
Initial commit - Backend de template-saas migrado desde monorepo
|
2026-01-16 08:07:11 -06:00 |
|
.gitignore
|
Initial commit - Backend de template-saas migrado desde monorepo
|
2026-01-16 08:07:11 -06:00 |
|
Dockerfile
|
Initial commit - Backend de template-saas migrado desde monorepo
|
2026-01-16 08:07:11 -06:00 |
|
eslint.config.js
|
Initial commit - Backend de template-saas migrado desde monorepo
|
2026-01-16 08:07:11 -06:00 |
|
jest.config.cjs
|
Initial commit - Backend de template-saas migrado desde monorepo
|
2026-01-16 08:07:11 -06:00 |
|
package-lock.json
|
Initial commit - Backend de template-saas migrado desde monorepo
|
2026-01-16 08:07:11 -06:00 |
|
package.json
|
Initial commit - Backend de template-saas migrado desde monorepo
|
2026-01-16 08:07:11 -06:00 |
|
README.md
|
Initial commit
|
2026-01-16 14:04:04 +00:00 |
|
tsconfig.json
|
Initial commit - Backend de template-saas migrado desde monorepo
|
2026-01-16 08:07:11 -06:00 |
template-saas-backend-v2
Backend de template-saas - Workspace V2