feat(highlightjs): add test

This commit is contained in:
Elian Doran
2025-05-18 11:26:59 +03:00
parent 6625997554
commit 294727600b
6 changed files with 74 additions and 3 deletions

View File

@@ -0,0 +1,14 @@
import { describe, it } from "vitest";
import definitions from "./syntax_highlighting.js";
describe("Syntax highlighting definitions", () => {
it("every entry is readable", async () => {
for (const [ mime, mapping ] of Object.entries(definitions)) {
if (mapping === null) {
continue;
}
await mapping.loader;
}
});
});