mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2026-08-13 12:33:07 +02:00
- Add vitest configuration for backend tests - Add comprehensive test suite for CommonService (57 tests) - Add npm scripts for running backend tests with coverage - Tests cover: password masking, secure data handling, sorting functions, date/time conversions, error handling, version compatibility, and more 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/**/*.spec.ts'],
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'html'],
|
|
include: ['server/**/*.ts'],
|
|
exclude: ['server/**/*.spec.ts', 'server/models/**']
|
|
}
|
|
}
|
|
});
|