mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-08-23 23:02:17 +10:00
18 lines
671 B
TypeScript
18 lines
671 B
TypeScript
import { readFileSync } from "node:fs";
|
|
import { fileURLToPath } from "node:url";
|
|
import { describe, expect, it } from "vitest";
|
|
|
|
const registry = readFileSync(fileURLToPath(new URL("./index.ts", import.meta.url)), "utf8");
|
|
|
|
describe("templatePages", () => {
|
|
it("registers Scizor as a renderable template page", () => {
|
|
expect(registry).toContain('import { ScizorPage } from "./scizor/ScizorPage";');
|
|
expect(registry).toContain("scizor: ScizorPage");
|
|
});
|
|
|
|
it("exports the semantic manifest registry through the template index", () => {
|
|
expect(registry).toContain("getTemplateSemanticManifest");
|
|
expect(registry).toContain("TemplateSemanticManifest");
|
|
});
|
|
});
|