RTL/package.json
continue[bot] ca050f62aa Add backend test infrastructure with vitest and initial tests for CommonService and LoggerService
- Add vitest configuration for backend testing
- Add test:backend and test:backend:coverage npm scripts
- Add comprehensive tests for server/utils/common.ts (61 tests)
  - Tests for maskPasswords, sortAscByKey, sortDescByKey, sortAscByStrKey, sortDescByStrKey
  - Tests for convertTimeToEpoch, convertTimestampToTime, isVersionCompatible
  - Tests for handleError, getRequestIP, findNode, removeSecureData
  - Tests for runWithConcurrencyLimit, camelCase, titleCase, getMonthDays
- Add tests for server/utils/logger.ts (22 tests)
  - Tests for ERROR, WARN, INFO, DEBUG log levels
  - Tests for log file writing and console output

Generated with [Continue](https://continue.dev)

Co-Authored-By: Continue <noreply@continue.dev>
Co-authored-by: shahana-farooqui <shahana.farooqui@gmail.com>
2026-03-04 17:11:10 +00:00

116 lines
3.8 KiB
JSON

{
"name": "rtl",
"version": "0.15.8-beta",
"license": "MIT",
"type": "module",
"scripts": {
"ng": "ng",
"start": "ng serve --open",
"prebuildfrontendtest": "node src/prebuild.cjs",
"prebuildfrontend": "node src/prebuild.cjs",
"watchfrontenddev": "ng build --configuration development --optimization false --watch",
"buildfrontendtest": "ng test --watch=false && ng build",
"buildfrontend": "ng build --configuration production",
"buildbackend": "npx tsc --project ./server/tsconfig.server.json",
"watchbackend": "npx tsc --project ./server/tsconfig.server.json --watch",
"server": "set NODE_ENV=development&&nodemon --watch backend --watch server ./rtl.js",
"serverUbuntu": "NODE_ENV=development nodemon --watch backend --watch server ./rtl.js",
"testdev": "ng test --watch=true --code-coverage",
"test": "ng test --watch=false --browsers=ChromeHeadless",
"test:backend": "vitest run",
"test:backend:coverage": "vitest run --coverage",
"lint": "eslint"
},
"private": true,
"dependencies": {
"@ngrx/effects": "21.0.1",
"@ngrx/store": "21.0.1",
"@swimlane/ngx-charts": "23.1.0",
"angular-user-idle": "4.0.0",
"atob": "2.1.2",
"axios": "1.13.2",
"buffer": "6.0.3",
"cookie-parser": "1.4.7",
"crypto-browserify": "3.12.1",
"csurf": "1.11.0",
"express": "5.2.1",
"express-session": "1.18.2",
"hocon-parser": "1.0.1",
"ini": "6.0.0",
"jsonwebtoken": "9.0.3",
"ng-qrcode": "21.0.0",
"ngx-perfect-scrollbar-next": "10.1.1",
"otplib": "12.0.1",
"pdfmake": "0.3.2",
"process": "0.11.10",
"request": "2.88.2",
"request-promise": "4.2.6",
"rxjs": "7.8.2",
"sha256": "0.2.0",
"socket.io-client": "4.8.3",
"stream-browserify": "3.0.0",
"tslib": "2.8.1",
"vm-browserify": "1.1.2",
"ws": "8.19.0",
"zone.js": "0.16.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "20.3.14",
"@angular-eslint/builder": "20.7.0",
"@angular-eslint/eslint-plugin": "20.7.0",
"@angular-eslint/eslint-plugin-template": "20.7.0",
"@angular-eslint/schematics": "20.7.0",
"@angular-eslint/template-parser": "20.7.0",
"@angular/animations": "20.3.14",
"@angular/build": "20.3.14",
"@angular/cdk": "20.2.14",
"@angular/cli": "20.3.14",
"@angular/common": "20.3.14",
"@angular/compiler": "20.3.14",
"@angular/compiler-cli": "20.3.14",
"@angular/core": "20.3.14",
"@angular/flex-layout": "15.0.0-beta.42",
"@angular/forms": "20.3.14",
"@angular/material": "20.2.14",
"@angular/platform-browser": "20.3.14",
"@angular/platform-browser-dynamic": "20.3.14",
"@angular/router": "20.3.14",
"@eslint/eslintrc": "3.3.3",
"@fortawesome/angular-fontawesome": "4.0.0",
"@fortawesome/fontawesome-svg-core": "7.1.0",
"@fortawesome/free-regular-svg-icons": "7.1.0",
"@fortawesome/free-solid-svg-icons": "7.1.0",
"@ngrx/store-devtools": "21.0.1",
"@types/jasmine": "5.1.15",
"@types/node": "20.19.30",
"@typescript-eslint/eslint-plugin": "8.53.0",
"@typescript-eslint/parser": "8.53.0",
"@vitest/coverage-v8": "^4.0.18",
"dotenv": "17.2.3",
"eslint": "9.39.2",
"eslint-plugin-deprecation": "3.0.0",
"jasmine-core": "5.13.0",
"jasmine-spec-reporter": "7.0.0",
"karma": "6.4.4",
"karma-chrome-launcher": "3.2.0",
"karma-coverage": "2.2.1",
"karma-jasmine": "5.1.0",
"karma-jasmine-html-reporter": "2.1.0",
"material-icons": "1.13.14",
"nodemon": "3.1.11",
"protractor": "7.0.0",
"roboto-fontface": "0.10.0",
"ts-node": "10.9.2",
"typescript": "5.8.3",
"vitest": "^4.0.18"
},
"overrides": {
"chalk": "4.1.0",
"strip-ansi": "6.0.1",
"color-convert": "2.0.1",
"color-name": "1.1.4",
"is-core-module": "2.13.0",
"error-ex": "1.3.2",
"has-ansi": "2.1.1"
}
}