1
0
Fork 0
polaris-task-force/tests
Z8MB1E 06dbc88a2e test(polls): cover tallying, the poll service and the Discord embed
54 cases across three files.

- Pure: the highest-tier weight rule, decimal weights tying exactly, multi-select
  counting one turnout per voter, dead options ignored, and every rung of the
  tie ladder including the cases where the initiator cannot discriminate.
- Service, against the real database: idempotent launch, vote replace and
  retract, single-answer rejection, role gating, weight resolution at close,
  initiator tie, superuser tie with a refused non-tied key, the deadline
  fallback, the result flag, double close, and a vote after close.
- Embed: anonymous polls never name voters, public ones do, buttons chunk into
  rows of five and disable once voting ends, and the hash moves on a vote, a
  name, and a resolution.
2026-12-01 14:17:54 -05:00
..
audit test(audit): support exact route filtering in the mobile audit 2026-10-13 10:38:45 -04:00
e2e feat(intelligence): add attendance-gated feature unlocks to mission pages 2026-11-21 02:30:48 -05:00
fixtures Revert "feat(minigames): make Bomperator own-seat movement server-authoritative" 2026-10-21 20:25:38 -04:00
helpers test(vitest): isolate:false shared forks with per-pid template clones + memoized payload boot 2026-10-21 12:54:30 -04:00
int test(polls): cover tallying, the poll service and the Discord embed 2026-12-01 14:17:54 -05:00
push-schema.ts test(int-suite): auto-accept drizzle push prompts in tests/push-schema.ts 2026-10-21 10:03:33 -04:00
seed-baseline.ts feat(test): run tests against a dedicated truncated database 2026-09-22 17:58:17 -04:00
test-db.ts test(vitest): honor KEEP_TEST_DBS=0 as force-drop escape hatch 2026-10-21 13:04:15 -04:00
vitest-global.ts test(vitest): parallel forks with per-worker database clones 2026-10-21 10:41:57 -04:00
vitest-marker.ts test(vitest): parallel forks with per-worker database clones 2026-10-21 10:41:57 -04:00
vitest-reporter.ts test(vitest): isolate:false shared forks with per-pid template clones + memoized payload boot 2026-10-21 12:54:30 -04:00
vitest-teardown.ts test(vitest): honor KEEP_TEST_DBS=0 as force-drop escape hatch 2026-10-21 13:04:15 -04:00
vitest-worker-setup.ts test(vitest): isolate:false shared forks with per-pid template clones + memoized payload boot 2026-10-21 12:54:30 -04:00