super-productivity/packages/super-sync-server/tests
Johannes Millan 3fbde60742 refactor(supersync): address round-2 review of WS reconnect cooldown fix
- Replace the `client.refusedChallengers = 0` post-summary reset with a
  dedicated `summaryLogged: boolean` flag. The reset muddied the
  field's documented "lifetime count" semantics for any future reader
  observing the closing socket. The flag dedupes the `ws.on('close')`
  re-entry without lying about the count.
- Refresh the stale `RECONNECT_COOLDOWN_MS` doc that still described
  the non-sliding semantics from before fbdedf597e.
- Short-circuit the WS-429 path normalize on `statusCode === 429` in
  setErrorHandler so the split+replace doesn't run on the 99%+ of
  error responses that aren't 429.
- Drop the redundant `cid.length > 0` guard in `isValidClientId` —
  the trailing regex already requires `+` (≥1 char).
- Route the websocket.routes spec simulator through `isValidClientId`
  so it can't drift from production validation order again.
- Add a heartbeat-path regression test for the storm-summary dedup
  (the explicit-eviction path was already covered by fbdedf597e).
2026-05-20 15:57:00 +02:00
..
integration refactor(sync): decompose SuperSync server giants into cohesive modules 2026-05-15 20:06:12 +02:00
api.routes.spec.ts Pr 6741 (#6743) 2026-03-05 21:17:59 +01:00
auth-cache.spec.ts perf(sync): SuperSync server speed + correctness hardening (#7621) 2026-05-15 17:24:16 +02:00
auth-flows.spec.ts Pr 6741 (#6743) 2026-03-05 21:17:59 +01:00
cleanup.spec.ts fix(supersync): order cleanup reconcile stalest-first and add C1 regression tests 2026-05-12 22:25:18 +02:00
config.spec.ts perf(sync): SuperSync server speed + correctness hardening (#7621) 2026-05-15 17:24:16 +02:00
conflict-detection.spec.ts fix(supersync): aggregate prior clocks for full-state ops and deterministic retry lookup 2026-05-13 17:01:39 +02:00
conflict.spec.ts refactor(sync): decompose SuperSync server giants into cohesive modules 2026-05-15 20:06:12 +02:00
decompress-body.spec.ts Merge branch 'master' into feat/our-latest-super-sync-server-update 2026-05-12 20:40:26 +02:00
device.service.spec.ts refactor(sync): extract DeviceService and OperationDownloadService 2025-12-27 20:43:25 +01:00
duplicate-operation-precheck.spec.ts fix supersync retry idempotency 2026-05-13 00:14:35 +02:00
email.spec.ts Fix super-sync server auth and snapshot safety 2025-12-12 20:48:13 +01:00
gap-detection.spec.ts perf(sync): use indexed findFirst for op-download minSeq 2026-05-18 14:21:02 +02:00
magic-link-registration.spec.ts fix(sync): preserve own vector clock counter across full-state op resets 2026-04-01 15:41:13 +02:00
middleware.spec.ts Pr 6741 (#6743) 2026-03-05 21:17:59 +01:00
migrate-deploy-script.spec.ts fix(supersync): address multi-agent review of CONCURRENTLY recovery 2026-05-15 22:03:25 +02:00
migration-sql.spec.ts test(supersync): stabilize migration CI checks 2026-05-16 20:35:47 +02:00
op-replay.spec.ts refactor(sync): decompose SuperSync server giants into cohesive modules 2026-05-15 20:06:12 +02:00
operation-download.service.spec.ts perf(sync): use indexed findFirst for op-download minSeq 2026-05-18 14:21:02 +02:00
passkey.spec.ts test(sync): fix failing unit tests for recent server changes 2026-01-24 21:14:58 +01:00
password-reset-api.spec.ts Revert "feat(sync): add rolling JWT token refresh on sync requests" 2026-02-02 17:15:13 +01:00
password-reset.spec.ts fix(security): address critical and high severity vulnerabilities 2025-12-31 12:15:56 +01:00
rate-limit.service.spec.ts refactor(sync): extract services from SyncService and migrate tests to Prisma 2025-12-27 20:38:26 +01:00
registration-api.spec.ts chore(sync-server): update npm scripts and expand legal docs 2025-12-15 13:47:42 +01:00
replace-token-expiry.spec.ts fix(sync): fix supersync server unit test failures 2026-03-22 10:10:19 +01:00
request-deduplication.service.spec.ts feat(supersync): persist full-state vector clock and add snapshot retry idempotency 2026-05-13 17:01:39 +02:00
retention-config.spec.ts fix(security): address critical and high severity vulnerabilities 2025-12-31 12:15:56 +01:00
security-fixes.spec.ts test(sync): fix failing unit tests for recent server changes 2026-01-24 21:14:58 +01:00
server-security.spec.ts fix(supersync): harden production server deploy 2026-05-13 02:10:46 +02:00
setup.ts fix(supersync): sanitize errors, exact full-state quota, atomic counter 2026-05-12 21:36:49 +02:00
snapshot-skip-optimization.spec.ts test(sync-server): add comprehensive edge case tests for snapshot skip 2025-12-17 11:42:32 +01:00
snapshot.service.spec.ts refactor(sync): decompose SuperSync server giants into cohesive modules 2026-05-15 20:06:12 +02:00
storage-quota-cleanup.spec.ts refactor(sync): decompose SuperSync server giants into cohesive modules 2026-05-15 20:06:12 +02:00
storage-quota.service.spec.ts perf(sync): SuperSync server speed + correctness hardening (#7621) 2026-05-15 17:24:16 +02:00
sync-compressed-body.routes.spec.ts perf(sync): SuperSync server speed + correctness hardening (#7621) 2026-05-15 17:24:16 +02:00
sync-fixes.spec.ts fix(supersync): sanitize errors, exact full-state quota, atomic counter 2026-05-12 21:36:49 +02:00
sync-operations.spec.ts refactor(sync): decompose SuperSync server giants into cohesive modules 2026-05-15 20:06:12 +02:00
sync-types.spec.ts test(sync): add vector clock pruning edge case tests (#6506) 2026-02-13 12:42:36 +01:00
sync.routes.spec.ts refactor(sync): unify JWT expiry to 365 days for all auth methods 2026-02-16 18:44:27 +01:00
sync.service.spec.ts refactor(sync): decompose SuperSync server giants into cohesive modules 2026-05-15 20:06:12 +02:00
sync.service.test-state.ts perf(super-sync): optimize status and conflict checks 2026-05-13 11:40:43 +02:00
time-tracking-operations.spec.ts refactor(sync): decompose SuperSync server giants into cohesive modules 2026-05-15 20:06:12 +02:00
validation.service.spec.ts refactor(sync): decompose SuperSync server giants into cohesive modules 2026-05-15 20:06:12 +02:00
websocket-connection.service.spec.ts refactor(supersync): address round-2 review of WS reconnect cooldown fix 2026-05-20 15:57:00 +02:00
websocket.routes.spec.ts refactor(supersync): address round-2 review of WS reconnect cooldown fix 2026-05-20 15:57:00 +02:00