Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions packages/ui/tests/route-impact.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ describe("route-impact", () => {
expect(pick("site/src/templates/_shared/brand-new.ts").all).toBe(true);
});

it("a CLI source under packages/ui/bin renders nothing and selects no route (#593)", () => {
for (const file of ["packages/ui/bin/ca-ui-mcp.ts", "packages/ui/bin/codeatlas-ui.ts"]) {
const s = pick(file);
expect(s.all).toBe(false);
expect(s.routes).toEqual([]);
}
});

it("selects every route for a component the site shell renders on every page", () => {
// Which components the shell renders changes with the site (#556 moved Button out of it): read it
// from the map rather than naming one.
Expand Down
1 change: 1 addition & 0 deletions scripts/route-impact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ const NO_ROUTE_IMPACT = [
/^(\.github|\.changeset|\.agents|\.vscode|docs)\//,
/^(llms\.txt|lefthook\.yml|biome\.json|bunfig\.toml|tsconfig\.json|\.editorconfig|\.gitignore|LICENSE|NOTICE|package\.json)$/,
/^scripts\//,
/^packages\/ui\/bin\//, // CLIs (codeatlas-ui, ca-ui-mcp): Node programs no page renders or imports
/^packages\/ui\/tests\//,
/^packages\/ui\/(vite\.config\.ts|svelte\.config\.js|tsconfig\.json|size-limit\.json|CHANGELOG\.md)$/,
/\.(svelte\.test|vrt\.test|ssr\.test)\.ts$|\.test\.svelte$|__screenshots__\//,
Expand Down