build: add frontend TypeScript toolchain
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// SPDX-FileCopyrightText: 2026 Stan Grams <sjg@haxx.space>
|
||||
//
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
import assert from "node:assert/strict";
|
||||
import test from "node:test";
|
||||
import { readFile } from "node:fs/promises";
|
||||
|
||||
test("index loads the shared UI before the application", async () => {
|
||||
const html = await readFile(new URL("../../assets/web/index.html", import.meta.url), "utf8");
|
||||
assert.ok(html.indexOf("/ui-core.js") < html.indexOf("/app.js"));
|
||||
});
|
||||
Reference in New Issue
Block a user