RTL/server/utils
continue[bot] 4d2b925c1f Add backend unit tests for CommonService utilities
- Set up Vitest testing framework for backend TypeScript tests
- Add vitest.config.ts with coverage configuration
- Add comprehensive tests for server/utils/common.ts including:
  - maskPasswords: password field masking in objects
  - convertTimeToEpoch: date to epoch conversion
  - sortAscByKey/sortDescByKey: numeric sorting utilities
  - sortAscByStrKey/sortDescByStrKey: string sorting utilities
  - newestOnTop: array reordering
  - camelCase/titleCase: string case conversion
  - isVersionCompatible: semantic version comparison
  - getMonthDays: calendar month day calculation
  - findNode: node lookup by index
  - removeAuthSecureData/removeSecureData: secure data removal
  - getRequestIP: client IP extraction
  - handleError: error response formatting for LND/CLN/ECL
  - runWithConcurrencyLimit: concurrent task execution
- Add npm scripts for backend testing: test:backend and test:backend:coverage
- 59 tests passing with coverage reporting

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

Co-Authored-By: Continue <noreply@continue.dev>
Co-authored-by: shahana-farooqui <shahana.farooqui@gmail.com>
2026-04-01 16:07:03 +00:00
..
app.ts Release 0.15.1 (#1406) 2024-06-10 12:40:37 -07:00
authCheck.ts Release 0.15.1 (#1406) 2024-06-10 12:40:37 -07:00
common.test.ts Add backend unit tests for CommonService utilities 2026-04-01 16:07:03 +00:00
common.ts Release 0.15.6 (#1506) 2025-09-09 02:18:23 -07:00
config.ts Release 0.15.4 (#1472) 2024-11-18 20:27:51 -08:00
cors.ts Release 0.15.1 (#1406) 2024-06-10 12:40:37 -07:00
csrf.ts Release 0.15.1 (#1406) 2024-06-10 12:40:37 -07:00
database.ts Release 0.15.1 (#1406) 2024-06-10 12:40:37 -07:00
logger.ts Release 0.15.1 (#1406) 2024-06-10 12:40:37 -07:00
webSocketServer.ts Release 0.15.1 (#1406) 2024-06-10 12:40:37 -07:00