mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2026-08-13 12:33:07 +02:00
- Add vitest testing framework configuration for backend TypeScript tests - Add 59 tests for CommonService covering: - maskPasswords: password field masking in objects - removeAuthSecureData: authentication data removal - removeSecureData: config secure data removal - convertTimeToEpoch: Date to epoch conversion - convertTimestampToTime: epoch to formatted string conversion - sortAscByKey/sortDescByKey: numeric key sorting - sortAscByStrKey/sortDescByStrKey: string key sorting - newestOnTop: array reordering - camelCase/titleCase: string transformations - findNode: node lookup by index - getMonthDays: month day calculation with leap year support - isVersionCompatible: version comparison - handleError: error object normalization - getRequestIP: request IP extraction - runWithConcurrencyLimit: concurrent task execution - Add 25 tests for LoggerService covering: - ERROR level logging with various error formats - WARN level logging with log level filtering - INFO level logging with console and file output - DEBUG level logging with data inclusion - Log message format verification Generated with [Continue](https://continue.dev) Co-Authored-By: Continue <noreply@continue.dev> Co-authored-by: shahana-farooqui <shahana.farooqui@gmail.com>
15 lines
403 B
TypeScript
15 lines
403 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globals: true,
|
|
environment: 'node',
|
|
include: ['server/**/*.test.ts', 'server/**/*.spec.ts'],
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'text-summary'],
|
|
include: ['server/**/*.ts'],
|
|
exclude: ['server/**/*.test.ts', 'server/**/*.spec.ts', 'server/models/**']
|
|
}
|
|
}
|
|
});
|