mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2026-08-13 12:33:07 +02:00
- Add vitest configuration for backend testing
- Add test:backend and test:backend:coverage npm scripts
- Add 83 unit tests covering:
- CommonService utilities: sorting, date conversion, error handling,
password masking, version compatibility, secure data removal
- LoggerService: all log levels (ERROR, WARN, INFO, DEBUG), file
logging, message formatting
- Authenticate controller: failed login tracking, token verification,
IP extraction, locking mechanism
Generated with [Continue](https://continue.dev)
Co-authored-by: shahana-farooqui <shahana.farooqui@gmail.com>
Co-Authored-By: Continue <noreply@continue.dev>
15 lines
349 B
TypeScript
15 lines
349 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globals: true,
|
|
environment: 'node',
|
|
include: ['server/**/*.test.ts'],
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'html'],
|
|
include: ['server/**/*.ts'],
|
|
exclude: ['server/**/*.test.ts', 'server/models/**']
|
|
}
|
|
}
|
|
});
|