Release v0.1.6 2026-07-12
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user