test: harden MVP QA gate
This commit is contained in:
parent
081d6085a5
commit
bdb02daa96
11 changed files with 479 additions and 44 deletions
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue