16 lines
738 B
TypeScript
16 lines
738 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { TALENT_NODES, talentDescriptionForRank } from "./talentCatalog";
|
|
import { parseTalentModifiers } from "./talentModifiers";
|
|
|
|
describe("generated talent runtime coverage audit", () => {
|
|
it("keeps the active-spell and scalar-modifier counts explicit", () => {
|
|
const active = TALENT_NODES.filter((node) => (node.flags & 1) !== 0);
|
|
const scalarCovered = TALENT_NODES.filter((node) => (
|
|
parseTalentModifiers(talentDescriptionForRank(node, node.maxRank)).length > 0
|
|
));
|
|
console.info(JSON.stringify({ active: active.length, scalarCovered: scalarCovered.length }));
|
|
expect(active).toHaveLength(150);
|
|
expect(scalarCovered.length).toBeGreaterThan(0);
|
|
});
|
|
});
|