Initial commit

This commit is contained in:
Zoe
2026-08-07 22:13:25 -05:00
commit 8006fd67f3
40 changed files with 11017 additions and 0 deletions

16
tests/test-helpers.mjs Normal file
View File

@@ -0,0 +1,16 @@
import { createServer } from "vite";
import { resolve } from "node:path";
export const root = resolve(new URL("..", import.meta.url).pathname);
export async function loadModule(path) {
const vite = await createServer({
root,
logLevel: "error",
resolve: { alias: { "~": resolve(root, "app") } },
});
try {
return await vite.ssrLoadModule(`/${path}`);
} finally {
await vite.close();
}
}