release: publish v1.0.0

This commit is contained in:
Formsmith
2026-08-10 16:15:32 +03:00
parent decf33521a
commit a42922c4f3
56 changed files with 3914 additions and 125 deletions
+15
View File
@@ -0,0 +1,15 @@
import { describe, expect, it } from "vitest";
import { CHALLENGE_TUTORIAL_IDS, isChallengeTutorialId } from "@/lib/challenges";
describe("challenge tutorial ids", () => {
it("recognizes every supported challenge", () => {
expect(CHALLENGE_TUTORIAL_IDS).toEqual(["key-tag", "nameplate"]);
expect(CHALLENGE_TUTORIAL_IDS.every(isChallengeTutorialId)).toBe(true);
});
it("rejects stale or malformed stored values", () => {
expect(isChallengeTutorialId("phone-stand")).toBe(false);
expect(isChallengeTutorialId(null)).toBe(false);
expect(isChallengeTutorialId({ tutorial: "nameplate" })).toBe(false);
});
});