feat(purga): Monday eliminado completamente del sistema

14 servicios eliminados, 7 controllers local-only, crons locales,
config sin MONDAY_*, frontend sin banners/avisos Monday.
552 tests API + 7 apps construidas.
This commit is contained in:
2026-09-11 11:47:17 +00:00
parent 64b01246d6
commit 89d95eb53b
130 changed files with 2018 additions and 14747 deletions

View File

@@ -58,11 +58,10 @@ describe('authMiddleware (AUTH_ENABLED=true)', () => {
expect(req.usuarioToken?.username).toBe('admin')
})
it('deja pasar las rutas públicas sin token (health, login, webhook monday)', () => {
it('deja pasar las rutas públicas sin token (health, login)', () => {
const casos: Partial<Request>[] = [
{ method: 'GET', path: '/health' },
{ method: 'POST', path: '/auth/login' },
{ method: 'POST', path: '/webhooks/monday' },
]
for (const c of casos) {
vi.clearAllMocks()
@@ -125,12 +124,6 @@ describe('authMiddleware (AUTH_ENABLED=true)', () => {
}
})
it('protege POST /webhooks/monday con otro método no aplica: GET /webhooks/monday pide token', () => {
const { res, status } = resFake()
authMiddleware(reqFake({ method: 'GET', path: '/webhooks/monday' }), res, next)
expect(status).toHaveBeenCalledWith(401)
})
it('el token interno abre solo POST /cotizaciones/alertas-inventario', () => {
authMiddleware(
reqFake({