refactor(ui): localize progress and loading styles
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { expect, test } from "bun:test";
|
||||
import { gzipSync } from "bun";
|
||||
import { readFileSync } from "node:fs";
|
||||
import { join } from "node:path";
|
||||
import { compileWireFile, parse } from "../../compiler/src/index.ts";
|
||||
@@ -18,6 +19,10 @@ test("bundled UI assets are discoverable and readable", () => {
|
||||
expect(uiCss()).toContain("--wire-");
|
||||
});
|
||||
|
||||
test("global UI CSS stays below its migration ratchet", () => {
|
||||
expect(gzipSync(new TextEncoder().encode(uiCss())).length).toBeLessThanOrEqual(26_004);
|
||||
});
|
||||
|
||||
test("generated component reference documents every bundled component and its props", () => {
|
||||
const reference = JSON.parse(
|
||||
readFileSync(join(uiComponentsDir(), "..", "component-reference.json"), "utf8"),
|
||||
|
||||
Reference in New Issue
Block a user