Update package dependencies to vitest v4.0.16 and enhance role management in auth utilities with new role-checking functions in tests

This commit is contained in:
Torsten Schulz (local)
2025-12-20 10:25:16 +01:00
parent a00ed9723d
commit e38c8133ad
9 changed files with 238 additions and 730 deletions

View File

@@ -27,6 +27,9 @@ import spielplaeneHandler from '../server/api/spielplaene.get.js'
describe('Öffentliche API-Endpunkte', () => {
beforeEach(() => {
// Setze SMTP-Credentials für Tests
process.env.SMTP_USER = 'test@example.com'
process.env.SMTP_PASS = 'test-password'
vi.restoreAllMocks()
vi.clearAllMocks()
})