init: seeding the project repo

This commit is contained in:
2025-11-03 20:28:51 +01:00
parent 5d56e62051
commit 63a59377b8
9 changed files with 129 additions and 2 deletions

12
test/setup.js Normal file
View File

@@ -0,0 +1,12 @@
import { JSDOM } from "jsdom";
import { expect } from "chai";
const dom = new JSDOM(`<!DOCTYPE html><html><body></body></html>`, {
url: "http://localhost"
});
global.window = dom.window;
global.document = dom.window.document;
global.customElements = dom.window.customElements;
global.HTMLElement = dom.window.HTMLElement;
global.expect = expect;