2026-06-29 16:23:34 -04:00
|
|
|
# scripts/
|
|
|
|
|
|
2026-06-29 17:11:46 -04:00
|
|
|
Manual demo tool. NOT test.
|
2026-06-29 16:23:34 -04:00
|
|
|
|
|
|
|
|
## replay-combat.js
|
|
|
|
|
|
2026-06-29 17:11:46 -04:00
|
|
|
Live backend demo. Drives full combat via ws adapter (same contract as App).
|
|
|
|
|
Player display live-updates. Watch UI react to state changes.
|
2026-06-29 16:23:34 -04:00
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
# start backend + frontend first (see docs/DEVELOPMENT.md)
|
|
|
|
|
node scripts/replay-combat.js [rounds] [delayMs]
|
|
|
|
|
# defaults: 100 rounds, 200ms/step
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Coverage per round: damage, heal, all 22 conditions, toggleActive,
|
|
|
|
|
removeParticipant, addParticipant (reinforcements), updateParticipant,
|
|
|
|
|
pause/resume, reorderParticipants, endEncounter. Revives dead each round
|
|
|
|
|
to sustain full round count.
|
|
|
|
|
|
2026-06-29 17:11:46 -04:00
|
|
|
## See also
|
2026-06-29 16:23:34 -04:00
|
|
|
|
2026-06-29 17:11:46 -04:00
|
|
|
- `tests/audit/` — exploratory bug-finders (manual run, non-deterministic)
|
|
|
|
|
- `{shared,server,src}/tests/` — jest unit/integration/characterization
|
|
|
|
|
- `scratch/` — gitignored throwaway
|