fix test failures
Build & Push / Build & Push Docker Image (push) Successful in 5m17s
Test / Type Check (all packages) (push) Successful in 1m4s
Test / API Unit Tests (push) Successful in 49s
Test / Homepage Unit Tests (push) Has been cancelled
Test / Carplace Unit Tests (push) Has been cancelled
Test / Admin Unit Tests (push) Has been cancelled
Test / Dashboard Unit Tests (push) Has been cancelled
Test / API Integration Tests (push) Has been cancelled

This commit is contained in:
root
2026-07-20 21:26:13 -04:00
parent abb5d105cf
commit be49ac5e69
17 changed files with 62 additions and 17 deletions
@@ -17,7 +17,10 @@ vi.mock('../../middleware/requireTenant', () => ({
next()
},
}))
vi.mock('../../middleware/requireSubscription', () => ({ requireSubscription: (_req: any, _res: any, next: any) => next() }))
vi.mock('../../middleware/requireSubscription', () => {
const pass = (_req: any, _res: any, next: any) => next()
return { requireSubscription: pass, requireSubscriptionRead: pass, requireSubscriptionWrite: pass, requireSubscriptionFull: pass }
})
vi.mock('../../modules/auth/auth.employee.service', () => ({
getMe: vi.fn(),
login: vi.fn(),