Refactor database configuration and enhance error handling in authentication services

Updated the database configuration to centralize settings and improve maintainability. Enhanced error handling in the authentication service to provide clearer and more specific error messages for various failure scenarios, including registration, activation, and login processes. Additionally, added new dependencies for testing and SQLite support in the package.json file.
This commit is contained in:
Torsten Schulz (local)
2025-11-10 16:54:49 +01:00
parent 620b065ac8
commit 3f1018ef93
14 changed files with 716 additions and 11 deletions

14
backend/vitest.config.js Normal file
View File

@@ -0,0 +1,14 @@
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: true,
environment: 'node',
setupFiles: ['./tests/setupTestEnv.js'],
include: ['tests/**/*.test.js'],
coverage: {
reporter: ['text', 'html'],
exclude: ['migrations/**', 'uploads/**', 'scripts/**'],
},
},
});