Release Healer Man 0.1.14

This commit is contained in:
phenom committed 2026-09-05 11:40:50 -04:00
1 parent 67d7a8ebe7
commit 7b41b102fa
147 files changed
+169892 -1342

No files matched your search

+20 -1
View File
@@ -1,6 +1,10 @@
import { readFileSync } from "node:fs";
import path from "node:path";
import { fileURLToPath } from "node:url";
import { afterEach, describe, expect, it, vi } from "vitest";
import {
MANASTORM_DEFAULT_PORTAL_READY_CUE_ID,
MANASTORM_PORTAL_AUDIO_ROOT,
MANASTORM_PORTAL_AUDIO_CUES,
manastormCueForStatusTransition,
manastormPortalAudioCue,
@@ -10,6 +14,8 @@ import {
} from "./manastormClientCues";
import { useManastormStore } from "./manastormStore";
const projectDirectory = fileURLToPath(new URL("../..", import.meta.url));
describe("Manastorm imported client cues", () => {
afterEach(() => {
stopManastormClientCue();
@@ -25,10 +31,23 @@ describe("Manastorm imported client cues", () => {
.toHaveLength(3);
for (const cue of MANASTORM_PORTAL_AUDIO_CUES) {
expect(cue.fileName).toMatch(/^Manastorm_BossKill_.+\.wav$/);
expect(cue.url).toContain(cue.fileName);
expect(cue.url).toBe(`${MANASTORM_PORTAL_AUDIO_ROOT}/${cue.fileName}`);
const audio = readFileSync(path.join(projectDirectory, "public", cue.url.slice(1)));
expect(audio.subarray(0, 4).toString("ascii")).toBe("RIFF");
expect(audio.subarray(8, 12).toString("ascii")).toBe("WAVE");
}
});
it("keeps optional portal audio out of Vite source imports", () => {
const source = readFileSync(
new URL("./manastormClientCues.ts", import.meta.url),
"utf8",
);
expect(source).not.toContain("LadiksMPQEditor");
expect(source).not.toMatch(/new URL\s*\(/);
});
it("maps only an actual portal-ready state edge to the automatic cue", () => {
expect(manastormCueForStatusTransition("awaiting-loot", "portal-ready"))
.toBe(MANASTORM_DEFAULT_PORTAL_READY_CUE_ID);