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

+44
View File
@@ -1,6 +1,10 @@
import { describe, expect, it, vi } from "vitest";
import type { OnlineGroupActivity } from "./onlineGroupTypes";
import { enterOnlineGroupActivity } from "./OnlineGroupCoordinator";
import { SHELVED_MODES_ENABLED } from "./releaseFeatures";
const normalReleaseIt = SHELVED_MODES_ENABLED ? it.skip : it;
const shelvedModeIt = SHELVED_MODES_ENABLED ? it : it.skip;
const DUNGEON_ACTIVITY: OnlineGroupActivity = {
id: "activity-dungeon-1",
@@ -12,6 +16,14 @@ const DUNGEON_ACTIVITY: OnlineGroupActivity = {
startedAt: 1,
};
const MANASTORM_ACTIVITY: OnlineGroupActivity = {
...DUNGEON_ACTIVITY,
id: "activity-manastorm-1",
type: "manastorm",
partySize: 3,
startingLevel: 6,
};
function entryDependencies(enterDungeon: () => boolean) {
return {
installDungeonRuntime: vi.fn(async () => undefined),
@@ -75,4 +87,36 @@ describe("online group activity entry", () => {
expect(dependencies.enterDungeon).not.toHaveBeenCalled();
expect(consumeActivity).not.toHaveBeenCalled();
});
normalReleaseIt("does not load or enter a shelved group activity", async () => {
const consumeActivity = vi.fn();
const dependencies = entryDependencies(() => true);
await expect(enterOnlineGroupActivity(
MANASTORM_ACTIVITY,
"healer",
consumeActivity,
dependencies,
)).resolves.toBe(false);
expect(dependencies.installManastormRuntime).not.toHaveBeenCalled();
expect(dependencies.enterManastorm).not.toHaveBeenCalled();
expect(consumeActivity).not.toHaveBeenCalled();
});
shelvedModeIt("restores Manastorm group entry in the developer mode", async () => {
const consumeActivity = vi.fn();
const dependencies = entryDependencies(() => true);
await expect(enterOnlineGroupActivity(
MANASTORM_ACTIVITY,
"healer",
consumeActivity,
dependencies,
)).resolves.toBe(true);
expect(dependencies.installManastormRuntime).toHaveBeenCalledOnce();
expect(dependencies.enterManastorm).toHaveBeenCalledWith("healer", 3, 6);
expect(consumeActivity).toHaveBeenCalledWith(MANASTORM_ACTIVITY.id);
});
});