Release Healer Man 0.1.32

This commit is contained in:
phenom committed 2026-09-12 11:07:25 -04:00
1 parent d3d6aaebdb
commit 6dcb1034e5
102 files changed
+10772 -788

No files matched your search

+28 -2
View File
@@ -2,6 +2,10 @@ import { describe, expect, it, vi } from "vitest";
import { registerDungeonShellRuntime } from "./dungeonShellRuntimeBridge";
import { registerManastormShellRuntime } from "./manastormShellRuntimeBridge";
import { useShellStore } from "./shellStore";
import { SHELVED_MODES_ENABLED } from "./releaseFeatures";
const normalReleaseIt = SHELVED_MODES_ENABLED ? it.skip : it;
const shelvedModeIt = SHELVED_MODES_ENABLED ? it : it.skip;
describe("on-demand shell runtime delegation", () => {
it("delegates dungeon entry after its phase runtime is installed", () => {
@@ -12,7 +16,30 @@ describe("on-demand shell runtime delegation", () => {
expect(enterDungeon).toHaveBeenCalledWith("wailing-caverns", "healer");
});
it("delegates Manastorm operations after its phase runtime is installed", () => {
normalReleaseIt("ignores registered Manastorm delegates in a normal release", () => {
const enterManastorm = vi.fn(() => true);
const saveSelectedLoadout = vi.fn(() => true);
const abandonRun = vi.fn();
const failRun = vi.fn();
registerManastormShellRuntime({
enterManastorm,
saveSelectedLoadout,
abandonRun,
failRun,
leaveActiveGame: vi.fn(),
});
expect(useShellStore.getState().enterManastorm("healer", 3, 6)).toBe(false);
expect(useShellStore.getState().saveSelectedManastormLoadout(["spell-1"])).toBe(false);
useShellStore.getState().abandonManastormRun();
useShellStore.getState().failActiveManastorm();
expect(enterManastorm).not.toHaveBeenCalled();
expect(saveSelectedLoadout).not.toHaveBeenCalled();
expect(abandonRun).not.toHaveBeenCalled();
expect(failRun).not.toHaveBeenCalled();
});
shelvedModeIt("delegates Manastorm operations after its phase runtime is installed", () => {
const enterManastorm = vi.fn(() => true);
const saveSelectedLoadout = vi.fn(() => true);
const abandonRun = vi.fn();
@@ -37,4 +64,3 @@ describe("on-demand shell runtime delegation", () => {
expect(failRun).toHaveBeenCalledOnce();
});
});