Etapa 5 completa.
Some checks failed
/ Deploy to Cloudflare Pages (push) Has been cancelled

This commit is contained in:
2026-07-07 10:32:02 -03:00
parent bc9f70419c
commit ef9ec472d5
9 changed files with 511 additions and 15 deletions

View File

@@ -279,6 +279,10 @@ vi.mock('@tanstack/react-router', async (importActual) => {
}
})
vi.mock('@/auth/AuthContext', () => ({
useAuth: () => ({ user: { id: 'test-user', platformRole: 'platform_admin' } }),
}))
describe('ReportPage — empty state (sin simulación)', () => {
beforeEach(() => {
vi.mocked(useReportData).mockReturnValue({

View File

@@ -47,6 +47,10 @@ vi.mock('@tanstack/react-router', async (importActual) => {
}
})
vi.mock('@/auth/AuthContext', () => ({
useAuth: () => ({ user: { id: 'test-user', platformRole: 'platform_admin' } }),
}))
// ─── Fixtures ─────────────────────────────────────────────────────────────────
import type { ActivitySimResult, Activity, SimulationResult } from '@/domain/types'