feat: add shared download registry, type safety, and test infra Add DownloadRegistry to prevent duplicate downloads between DownloadManager and GameZipServer. Consolidate PreferencesService (delete game/services copy, add compatibility aliases). Replace `any` defaults with `unknown` in DatabaseService/UserDatabaseService and add explicit type parameters to ~40 query call sites. Add vitest config, test setup, test helpers, and unit tests for auth middleware, RBAC, pagination, and time range utils. Enable strictPropertyInitialization in backend tsconfig. Add SHA-256 checksum verification to RuffleService updates. Harden Docker Compose with log rotation, resource limits, and bridge network. Fix NODE_ENV default in dev compose, exclude guest userId from activity logs, add activity logging to password change, guard nullable permission descriptions, and align frontend Game/Permission types with actual API shape.
21 lines
403 B
TypeScript
21 lines
403 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
import path from 'path';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globals: true,
|
|
environment: 'node',
|
|
include: ['src/**/*.test.ts'],
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'lcov'],
|
|
},
|
|
setupFiles: ['./src/test/setup.ts'],
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
},
|
|
},
|
|
});
|