Release v0.1.6 2026-07-12

This commit is contained in:
Warren H
2026-07-12 23:20:15 -04:00
parent 35553c18dd
commit 122f159b94
55 changed files with 2229 additions and 587 deletions
+6 -3
View File
@@ -2,9 +2,12 @@ import { describe, expect, it } from "vitest";
import { useGameStore } from "./store";
describe("runtime performance budgets", () => {
it("keeps ten minutes of dual-boss simulation bounded", () => {
it.each([
{ label: "dual-boss", bossIds: ["emberfox", "sandglass-scorpion"] as const, maxElapsedMs: 3_500 },
{ label: "Rogue Trials trio", bossIds: ["emberfox", "sandglass-scorpion", "tempestscale-dragon"] as const, maxElapsedMs: 5_000 },
])("keeps ten minutes of $label simulation bounded", ({ bossIds, maxElapsedMs }) => {
const store = useGameStore.getState();
store.configureHealer("priest", "Perf", [], ["emberfox", "sandglass-scorpion"]);
store.configureHealer("priest", "Perf", [], bossIds);
store.startEncounter();
useGameStore.setState((state) => ({
boss: { ...state.boss, hp: 1_000_000_000, maxHp: 1_000_000_000 },
@@ -36,6 +39,6 @@ describe("runtime performance budgets", () => {
expect(maxHazards).toBeLessThanOrEqual(64);
expect(maxDamageEvents).toBeLessThanOrEqual(24);
expect(maxCombatLog).toBeLessThanOrEqual(12);
expect(elapsedMs).toBeLessThan(3_500);
expect(elapsedMs).toBeLessThan(maxElapsedMs);
});
});