Refresh UI components and showcase; release updated framework packages
This commit is contained in:
1 parent
d800228585
commit
c77f5e1cec
293 files changed
+22544
-35778
No files matched your search
@@ -0,0 +1,13 @@
|
||||
import { expect, test } from "bun:test";
|
||||
import { readdirSync, readFileSync } from "node:fs";
|
||||
import { basename, dirname, resolve } from "node:path";
|
||||
|
||||
test("component imports resolve on case-sensitive production filesystems", () => {
|
||||
const root = resolve(import.meta.dir, "../components");
|
||||
for (const name of readdirSync(root).filter(name => name.endsWith(".wrn"))) {
|
||||
for (const match of readFileSync(resolve(root, name), "utf8").matchAll(/from\s+["'](\.[^"']+\.wrn)["']/g)) {
|
||||
const target = resolve(root, match[1]);
|
||||
expect(readdirSync(dirname(target)), `${name}: ${match[1]}`).toContain(basename(target));
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user