Add SMTP credentials for tests and enhance user role handling in CMS and Galerie endpoints

This commit is contained in:
Torsten Schulz (local)
2025-12-20 10:32:06 +01:00
parent e38c8133ad
commit 98b69c446c
3 changed files with 74 additions and 12 deletions

View File

@@ -63,6 +63,9 @@ import statusHandler from '../server/api/auth/status.get.js'
describe('Auth API Endpoints', () => {
beforeEach(() => {
// Setze SMTP-Credentials für Tests
process.env.SMTP_USER = 'test@example.com'
process.env.SMTP_PASS = 'test-password'
vi.clearAllMocks()
})