RTL/vitest.config.ts
continue[bot] 0b9ebd57cd Add backend unit tests for common, logger, and authenticate utilities
- 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>
2026-03-05 17:09:33 +00:00

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/**']
}
}
});