Add SMTP credentials for tests and enhance user role handling in CMS and Galerie endpoints
Some checks failed
Code Analysis (JS/Vue) / analyze (push) Failing after 3m43s

This commit is contained in:
Torsten Schulz (local)
2025-12-20 10:32:06 +01:00
parent 4f453f77bc
commit acfa842131
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()
})