BillTracker/tests
null b4634a8080 feat(logging): redacted, level-gated logger; migrate all server console.* (Pillar D)
utils/logger.cts — console-compatible log.{debug,info,warn,error} with:
- level gating (LOG_LEVEL; debug in dev / info in prod), and
- REDACTION of secrets/PII (sensitive keys + bearer/JWT) so tokens,
  passwords, and encrypted values never reach the logs (financial app).
Backend is abstracted (console now, swappable to pino later).

Swept all 317 server-runtime console.* across 35 files → log.* + inserted
the import at correct scope. tests/logger.test.js pins the redaction
contract (4 tests). CODE_STANDARDS updated; raw console.* is now banned in
server code.

Verified: check:server + typecheck:server + lint clean; 240/240 server
tests; client 50/50; build; e2e probe 17/17; boot smoke logs flow through
the logger and graceful shutdown intact.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-06 16:05:18 -05:00
..
amountSuggestionService.test.js style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
analyticsService.test.js style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
authService.test.js style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
backupAndCleanup.test.js style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
bankSyncService.test.js style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
billMerchantRuleService.test.js style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
billReorder.test.js style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
billsDeletedRoute.test.js style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
billsService.test.js refactor(server): migrate billsService + notificationService to TypeScript (.cts) 2026-07-06 11:12:06 -05:00
calendarFeedService.test.js style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
categoryGroups.test.js refactor(routes): categories → uniform Express-5 throw pattern (Pillar B template) 2026-07-06 14:46:32 -05:00
categoryReorder.test.js refactor(routes): categories → uniform Express-5 throw pattern (Pillar B template) 2026-07-06 14:46:32 -05:00
csvTransactionImportService.test.js style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
encryptionService.test.js style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
eraseUserData.test.js style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
exportImportRoundTrip.test.js style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
exportRicher.test.js style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
logger.test.js feat(logging): redacted, level-gated logger; migrate all server console.* (Pillar D) 2026-07-06 16:05:18 -05:00
migrationModules.test.js style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
money.test.js style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
notificationDelivery.test.js style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
notificationLeadTime.test.js refactor(server): migrate billsService + notificationService to TypeScript (.cts) 2026-07-06 11:12:06 -05:00
ofxImportService.test.js style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
paymentAccountingService.test.js style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
paymentValidation.test.js style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
paymentsQuickRoute.test.js style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
paymentsRoute.test.js style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
profileRoute.test.js style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
reconciliation.test.js style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
safeToSpend.test.js style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
securityCoverage.test.js feat(security): CI secret-scan + dep-audit, SECURITY.md, auth-coverage test (Pillar C) 2026-07-06 14:40:17 -05:00
seedDemoData.test.js style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
snowballMath.test.js style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
snowballPlanRoute.test.js style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
spendingService.test.js style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
spendingSummary.test.js style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
statusService.test.js style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
subscriptionService.test.js style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
summaryBankTracking.test.js style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
summarySkipOverride.test.js style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
totpService.test.js style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
trackerService.test.js refactor(routes): analytics + tracker → throw pattern (batch 1) 2026-07-06 14:59:29 -05:00
transactionMatchService.test.js style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
transactionMatchState.test.js style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
updateCheckOptOut.test.js style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00