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
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:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user