test: harden MVP QA gate

This commit is contained in:
vince 2026-06-18 19:50:28 +02:00
parent 081d6085a5
commit bdb02daa96
11 changed files with 479 additions and 44 deletions

View file

@ -37,7 +37,7 @@ function readPresentationSource(path: string): string {
if (stats.isFile()) {
if (path.endsWith(".test.ts")) return "";
if (path.includes(`${join("src", "lib", "ui", "stories")}${"/"}`)) return "";
if (!/\.(svelte|ts|css)$/.test(path)) return "";
if (!/\.(svelte|svelte\.js|ts|js|mjs|css|json)$/.test(path)) return "";
return readFileSync(path, "utf8");
}