Split site definitions and generate default collection

This commit is contained in:
Jordan Wages 2026-08-25 19:15:05 -05:00
commit 40895e05db
10 changed files with 169 additions and 14 deletions

View file

@ -97,7 +97,7 @@ describe("DefinitionEngine", () => {
it("selects Threads on current and legacy domains", () => {
const threads = BUILTIN_DEFINITIONS.find((candidate) => candidate.id === "threads")!;
document.body.innerHTML = '<div role="article" data-pressable-container="true"></div>';
document.body.innerHTML = '<div data-pressable-container="true"></div>';
for (const url of ["https://threads.com/home", "https://www.threads.com/@alice/post/ABC123", "https://threads.net/home", "https://www.threads.net/@alice/post/ABC123"]) {
expect(selectDefinition([threads], url)).toBe(threads);
}